Neo Drilla should charge sooner than Point Blank

Status
Not open for further replies.

glaber

Emblem Radar Ready
I've been trying to give a custom badnilk a charge attack. Problem is, with the current soc, The badnik only charges at the player at point blank range.

Here's the current soc of the badnik. What I'd like to do is have the Drilla charge at the player starting from a longer range, but not as far away as a MISSILESTATE.
Code:
Thing MT_NeoDrilla
#$Sprite NEDRA1
MAPTHINGNUM = 2025
SPAWNSTATE = S_NEDR_STAND
SPAWNHEALTH = 1
SEESTATE = S_NEDR_RUN
SEESOUND = 0
REACTIONTIME = 3
ATTACKSOUND = sfx_s3kab
PAINSTATE = 0
PAINCHANCE = 5
PAINSOUND = 0
MELEESTATE = S_NEDR_JAB
MISSILESTATE = 0
DEATHSTATE = S_XPLD1
DEATHSOUND = sfx_pop
XDEATHSTATE = 160
SPEED = 3
RADIUS = 24*FRACUNIT
HEIGHT = 32*FRACUNIT
MASS = 100
DAMAGE = 0
ACTIVESOUND = 0
RAISESTATE = 0
FLAGS = MF_SPECIAL|MF_SHOOTABLE|MF_ENEMY

FRAME S_NEDR_STAND
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 0
DURATION = 1
NEXT = S_NEDR_STAND2
ACTION A_Look
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_STAND2
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 0
DURATION = 1
NEXT = S_NEDR_STAND
ACTION A_Look
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_RUN
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 0
DURATION = 1
NEXT = S_NEDR_RUN2
ACTION A_Chase
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_RUN2
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 1
DURATION = 2
NEXT = S_NEDR_RUN3
ACTION A_Chase
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_RUN3
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 2
DURATION = 2
NEXT = S_NEDR_RUN4
ACTION A_Chase
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_RUN4
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 3
DURATION = 2
NEXT = S_NEDR_RUN5
ACTION A_Chase
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_RUN5
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 4
DURATION = 2
NEXT = S_NEDR_RUN6
ACTION A_Chase
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_RUN6
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 5
DURATION = 2
NEXT = S_NEDR_RUN
ACTION A_Chase
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_JAB
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 0
DURATION = 5
NEXT = S_NEDR_JAB2
ACTION A_PlayAttackSound
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_JAB2
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 1
DURATION = 1
NEXT = S_NEDR_JAB3
ACTION A_PlayActiveSound
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_JAB3
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 2
DURATION = 1
NEXT = S_NEDR_JAB4
ACTION A_FaceTarget
VAR1 = 0
VAR2 = 0

FRAME S_NEDR_JAB4
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 3
DURATION = 1
NEXT = S_NEDR_JAB5
ACTION A_Thrust
VAR1 = 5
VAR2 = 0

FRAME S_NEDR_JAB5
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 4
DURATION = 1
NEXT = S_NEDR_JAB6
ACTION A_Thrust
VAR1 = 5
VAR2 = 0

FRAME S_NEDR_JAB6
SPRITENUMBER = NEDR
SPRITESUBNUMBER = 5
DURATION = 15
NEXT = S_NEDR_RUN
ACTION A_Thrust
VAR1 = 5
VAR2 = 0
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top