Spiker, on Jul 7 2009, 08:00 AM, said:
Another question, how do I define new frames when for example the player is holding a shotgun? I would like to have a special set of frames for it like the kick has. Sorry if I'm asking obious questions but it's not so easy to find it in the wiki.
So your goal is to replace the shotgun with a completely custom art sequence?
Then what you're going to want is getplayer[THISACTOR].kickback_pic.
http://wiki.eduke32....ki/Kickback_pic
From there you can use
EVENT_DISPLAYWEAPON to display your frames using
rotatesprite.
To define TOTALTIME, etc, you will want these vars:
WEAPONx_CLIP
WEAPONx_FIREDELAY
WEAPONx_FIRESOUND
WEAPONx_FLAGS
WEAPONx_INITIALSOUND
WEAPONx_SHOOTS
WEAPONx_SHOTSPERBURST
WEAPONx_SPAWN
WEAPONx_SPAWNTIME
WEAPONx_TOTALTIME
(too many to link, just look them up on the Wiki)
Note that x indicates the weapon slot number.
EDIT:
Isn't there also a WEAPONx_RELOADTIME or something along those lines? I didn't see it listed in the Wiki, but I seem to recall that when CLIP is reached RELOADTIME is added to TOTALTIME (and thus kickback_pic's value/sequence).