Skip to content

Commit

Permalink
- new names and SWActor properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 29, 2023
1 parent 1445fb9 commit 27a3742
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions source/core/namedef_custom.h
Expand Up @@ -79,3 +79,24 @@ xx(Special)
xx(CloseAttack)
xx(Attack)
xx(Dive)
xx(Sword)
xx(Punch)
xx(HeadHurl)
xx(HangFall)

xx(Speeds)
xx(TicAdjust)
xx(MaxWeapons)
xx(AmbientSound)
xx(AlertSound)
xx(AttackSound)
xx(PainSound)
xx(DieSound)
xx(ExtraSound1)
xx(ExtraSound2)
xx(ExtraSound3)
xx(ExtraSound4)
xx(ExtraSound5)
xx(ExtraSound6)
xx(CloseAttackPercent)
xx(AttackPercent)
22 changes: 22 additions & 0 deletions wadsrc/static/zscript/games/sw/swactor.zs
@@ -1,5 +1,27 @@
class SWActor : CoreActor native
{
const MAX_SPEED = 4;
const MAX_ACTOR_CLOSE_ATTACK = 2;
const MAX_ACTOR_ATTACK = 6;

meta int16 CloseAttackPercent[MAX_ACTOR_CLOSE_ATTACK];
meta int16 AttackPercent[MAX_ACTOR_ATTACK];

meta int16 Speeds[MAX_SPEED];
meta int8 TicAdjust[MAX_SPEED];
meta int8 MaxWeapons;
meta Sound AmbientSound;
meta Sound AlertSound;
meta Sound AttackSound;
meta Sound PainSound;
meta Sound DieSound;
meta Sound ExtraSound1;
meta Sound ExtraSound2;
meta Sound ExtraSound3;
meta Sound ExtraSound4;
meta Sound ExtraSound5;
meta Sound ExtraSound6;

// all ANIMATORs.
native int DoBunnyMove();
native int DoBunnyGrowUp();
Expand Down

0 comments on commit 27a3742

Please sign in to comment.