<
 
Mountain_Butterfly
 

File

Flags

Properties

//$categoryFoliage
alpha.8
damage0
floatspeed1
height2
mass20
meleerange0
radius2
speed1

States

Spawn: TNT1 A 0 ThrustThing(random(0,255),random(1,args[1]*.5),1,0) TNT1 A 0 ThrustThingZ(0,random(1,15),random(0,1),0) TNT1 A 1 A_Stop See: //Set up the insect to target the specified TID TNT1 A 1 Thing_Hate(0,args[0],6) Goto CheckDistance CheckDistance: //Check if the insect is close to the target spot and adjust behavior accordingly TNT1 A 0 A_Stop BFLY A 2 ThrustThing(random(0,255),random(1,1)) BUGR A 0 ThrustThingZ(0,random(4,8),random(0,1),0) BFLY B 2 ThrustThing(random(0,255),random(1,1)) BUGR B 0 ThrustThingZ(0,random(4,8),random(0,1),0) BFLY C 2 ThrustThing(random(0,255),random(1,1)) BUGR C 0 ThrustThingZ(0,random(4,8),random(0,1),0) BFLY B 2 ThrustThing(random(0,255),random(1,1)) BUGR D 0 ThrustThingZ(0,random(4,8),random(0,1),0) TNT1 A 0 A_JumpIfCloser(args[1],1) Goto Return BFLY A 2 ThrustThing(random(0,255),random(1,1)) BUGR E 0 ThrustThingZ(0,random(4,8),random(0,1),0) BFLY B 2 ThrustThing(random(0,255),random(1,1)) BUGR F 0 ThrustThingZ(0,random(4,8),random(0,1),0) BFLY C 2 ThrustThing(random(0,255),random(1,1)) BUGR G 0 ThrustThingZ(0,random(4,8),random(0,1),0) TNT1 A 0 A_JumpIfCloser(args[1],"Wander") Goto Return Wander: //Bug will move around randomly until it gets too far away BUGR A 0 A_ChangeFlag("FRIGHTENED", 1) Goto CheckDistance Return: //Bug will move towards the target spot TNT1 A 0 A_ChangeFlag("FRIGHTENED", 0) TNT1 A 0 A_Stop TNT1 A 0 A_FaceTarget TNT1 A 0 A_Recoil(-1) BFLY ABCBABCABCBABC 2 A_Chase("","") Goto CheckDistance Death: TNT1 A 1 Stop

Class Hierarchy

Classes defined in \DEC_PROP