-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still need to make some icons. Known Issues: Two weapons have modes that access a ZScript local variable, which as far as I know can't be reached by ACS, so these will be handled in a later update.
- Loading branch information
1 parent
a1adb7f
commit e9f9fb0
Showing
7 changed files
with
711 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#library "HXMACID" | ||
#include "zcommon.acs" | ||
#import "HXAMODCM.acs" | ||
#import "HXACVAR.acs" | ||
|
||
str eri_buddha = "PowerEriBuddha"; | ||
str hx_eri_buddha = "HX_Acid_BuddhaPowerUpToken"; | ||
str hx_eri_buddhalong = "HX_Acid_BuddhaPowerUpLongTimerToken"; | ||
str eri_haste = "EriPowerSpeed"; | ||
str eri_infrared = "PowerEriInfrared"; | ||
str eri_invisibility = "PowerEriBlurSphere"; | ||
str eri_invulnerability = "PowerEriInvulnerabilitySphere"; | ||
str eri_quaddamage = "PowerEriQuadDamage"; | ||
str eri_radsuit = "PowerEriRadSuit"; | ||
str hx_eri_pins = "HX_Acid_Eri_PINS"; | ||
str hx_eri_pinv = "HX_Acid_Eri_PINV"; | ||
str hx_eri_pstr = "HX_Acid_Eri_PSTR"; | ||
|
||
script "HXS_AcidEriguns35ticHandler" enter | ||
{ | ||
// Wait 35 tics (1sec) before engaging, to make sure the token has been given | ||
delay(35); | ||
|
||
if (CheckInventory(hxmod_acideriguns)) { | ||
while (true) | ||
{ | ||
/* // Key Management Tokens | ||
// Blue Keys | ||
HXS_ItemSync(vanillabluecard, hxgen_bluecard); | ||
HXS_ItemSync(vanillablueskull, hxgen_blueskull); | ||
// Red Keys | ||
HXS_ItemSync(vanillaredcard, hxgen_redcard); | ||
HXS_ItemSync(vanillaredskull, hxgen_redskull); | ||
// Yellow Keys | ||
HXS_ItemSync(vanillayellowcard, hxgen_yellowcard); | ||
HXS_ItemSync(vanillayellowskull, hxgen_yellowskull); */ | ||
|
||
// Powerup Management Tokens | ||
// Berserk | ||
HXS_ItemSync(vanillaberserk, hxgen_berserk); | ||
|
||
// Timer | ||
// Wait 35 tics (~1sec) before repeating, since we want this to be a clock | ||
delay(35); | ||
} | ||
} | ||
} | ||
|
||
script "HXS_AcidEriguns7ticHandler" enter | ||
{ | ||
// Wait 35 tics (1sec) before engaging, to make sure the token has been given | ||
delay(35); | ||
|
||
if (CheckInventory(hxmod_acideriguns)) { | ||
while (true) | ||
{ | ||
// Powerup Management Tokens | ||
// Buddha | ||
HXS_PowerupTimer(eri_buddha, hx_eri_buddha); | ||
HXS_PowerupTimer(eri_buddha, hx_eri_buddhalong); | ||
// Haste | ||
HXS_PowerupTimer(eri_haste, hxgen_haste); | ||
HXS_PowerupTimer(eri_haste, hxgen_hastelong); | ||
// Infrared | ||
HXS_PowerupTimer(eri_infrared, hxgen_infrared); | ||
HXS_PowerupTimer(eri_infrared, hxgen_infraredlong); | ||
// Invisibility | ||
HXS_PowerupTimer(eri_invisibility, hxgen_invisibility); | ||
HXS_PowerupTimer(eri_invisibility, hxgen_invisibilitylong); | ||
// Invulnerability | ||
HXS_PowerupTimer(eri_invulnerability, hxgen_invulnerability); | ||
HXS_PowerupTimer(eri_invulnerability, hxgen_invulnerabilitylong); | ||
// Quad Damage | ||
HXS_PowerupTimer(eri_quaddamage, hxgen_quaddamage); | ||
HXS_PowerupTimer(eri_quaddamage, hxgen_quaddamagelong); | ||
// Radsuit | ||
HXS_PowerupTimer(eri_radsuit, hxgen_radsuit); | ||
HXS_PowerupTimer(eri_radsuit, hxgen_radsuitlong); | ||
|
||
// Powerup Display Toggles | ||
// Berserk & Quad Damage | ||
HXF_CVARConvert_Generic("Eri_PSTR", hx_eri_pstr); | ||
// Invisibility & Haste | ||
HXF_CVARConvert_Generic("Eri_PINS", hx_eri_pins); | ||
// Invulnerability & Buddha | ||
HXF_CVARConvert_Generic("Eri_PINV", hx_eri_pinv); | ||
|
||
// Timer | ||
// Wait 7 tics (1/5sec) before repeating, since we want this to be reasonably responsive | ||
delay(7); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ HXAMODCM | |
HXACVAR | ||
HXASTATS | ||
HXMVAN | ||
HXMACID | ||
HXMBD | ||
HXMBDPUN | ||
HXMBDL | ||
|
Oops, something went wrong.