text
stringlengths 0
451
|
---|
ZSCRIPT PROGRAMMING LANGUAGE SCRIPTS FOR GZDOOM ENGINE!!!! |
// Base class for the acolytes ---------------------------------------------- |
class Acolyte : StrifeHumanoid |
{ |
Default |
{ |
Health 70; |
PainChance 150; |
Speed 7; |
Radius 24; |
Height 64; |
Mass 400; |
Monster; |
+SEESDAGGERS |
+NOSPLASHALERT |
+FLOORCLIP |
+NEVERRESPAWN |
MinMissileChance 150; |
Tag "$TAG_ACOLYTE"; |
SeeSound "acolyte/sight"; |
PainSound "acolyte/pain"; |
AttackSound "acolyte/rifle"; |
DeathSound "acolyte/death"; |
ActiveSound "acolyte/active"; |
Obituary "$OB_ACOLYTE"; |
} |
States |
{ |
Spawn: |
AGRD A 5 A_Look2; |
Wait; |
AGRD B 8 A_ClearShadow; |
Loop; |
AGRD D 8; |
Loop; |
AGRD ABCDABCD 5 A_Wander; |
Loop; |
See: |
AGRD A 6 Fast Slow A_AcolyteBits; |
AGRD BCD 6 Fast Slow A_Chase; |
Loop; |
Missile: |
AGRD E 8 Fast Slow A_FaceTarget; |
AGRD FE 4 Fast Slow A_ShootGun; |
AGRD F 6 Fast Slow A_ShootGun; |
Goto See; |
Pain: |
AGRD O 8 Fast Slow A_Pain; |
Goto See; |
Death: |
AGRD G 4; |
AGRD H 4 A_Scream; |
AGRD I 4; |
AGRD J 3; |
AGRD K 3 A_NoBlocking; |
AGRD L 3; |
AGRD M 3 A_AcolyteDie; |
AGRD N -1; |
Stop; |
XDeath: |
GIBS A 5 A_NoBlocking; |
GIBS BC 5 A_TossGib; |
GIBS D 4 A_TossGib; |
GIBS E 4 A_XScream; |
GIBS F 4 A_TossGib; |
GIBS GH 4; |
GIBS I 5; |
GIBS J 5 A_AcolyteDie; |
GIBS K 5; |
GIBS L 1400; |
Stop; |
} |
//============================================================================ |
// |
// A_AcolyteDie |
// |
//============================================================================ |
void A_AcolyteDie () |
{ |
// [RH] Disable translucency here. |
A_SetRenderStyle(1, STYLE_Normal); |
// Only the Blue Acolyte does extra stuff on death. |
if (self is "AcolyteBlue") |
{ |
int i; |
// Make sure somebody is still alive |
for (i = 0; i < MAXPLAYERS; ++i) |
{ |
if (playeringame[i] && players[i].health > 0) |
break; |
} |
if (i == MAXPLAYERS) |
return; |
End of preview. Expand
in Dataset Viewer.
No dataset card yet
New: Create and edit this dataset card directly on the website!
Contribute a Dataset Card- Downloads last month
- 1