A CheckRailReload: Difference between revisions

From Zandronum Wiki
(category capitalisation)
Tag: Source edit
(Remove an annoying empty paragraph at the start of the page)
Tag: Source edit
 
Line 1: Line 1:
{{DISPLAYTITLE:{{PAGENAMEE}}}}
{{DISPLAYTITLE:{{PAGENAMEE}}}}{{DECORATEWarning}}
{{DECORATEWarning}}
{{DeprecatedWarning|newfeature=advanced DECORATE functionality}}
{{DeprecatedWarning|newfeature=advanced DECORATE functionality}}



Latest revision as of 20:38, 2 January 2023

This article documents a Zandronum-specific DECORATE feature which may not be supported by ZDoom and its other child ports.
Warning: This feature is deprecated and has been superceded by advanced DECORATE functionality. Usage in new projects is not recommended.

void A_CheckRailReload (void)

Usage

Jumps to Fire+8 if this function has not been called for the fourth time. It also checks if there is ammo left for the weapon.

Warning: This function is limited to Skulltag's railgun and it's derived classes!

Examples

Fire:
    RLGG E 12 A_FireRailgun
    RLGG F 6 A_CheckRailReload
    RLGG G 6
    RLGG H 6
    RLGG I 6
    RLGG J 6
    RLGG K 6
    RLGG L 6
    RLGG A 6
    RLGG M 0 A_ReFire
    goto Ready