Hi,

I'm working on a mod, creating the weapons, but I've come into a bit of
trouble with the weapons. Namely, I'm trying to create a base class for
continual-fire beam weapons (i.e. phasers from Star Trek). I've got code
to do the beam, and that works fine, but I'm stuck on how to calculate the
damage. Should it be calculated once every frame? I wouldn't have thought
so, because that would allow higher-framerate systems an advantage. So it
needs to be calculated once every [specified time]. I've tried using a
FireBulletsInfo_t structure to calculate it, but the inbuilt random bullet
spattering throws everything. Should I use a trace_t, and calculate /
apply all the damage, decals, smoke puffs (etc.) with my own code? Is
there something else I could do? I'm aiming to have it apply decals to
form a nice "welt" of burns.

Another thing I would like to know is concerning CBasePlayer->m_nButtons -
is there another variable somewhere that's accessible to a CBasePlayer
that stores the buttons pressed in the last frame? I've currently hacked
together a CNetworkVar "m_nOldButtons", but it doesn't seem to want to
work very well.

Thanks,
Philip Withnall


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to