i got some coding from nadrew, you know his monster coding, wellllllll, i need the zombie monster to be slower, cause naturally zombies are slow, unless if they are super zombies, they are fastish, then i need a attack thing that i have to shoot a gun slash with a knife or punch them (new var's gun, knife if both = 0 attack text has you punching)
coding i have so far:
mob/Zombie//Defines a /mob/NPC
icon = 'Zombie.dmi'
rundelay=4
hp = 10//different health than the main mob
Click()//When clicked
usr.attack(src)//attack!
proc/move()//Now, this proc handles NPC movement
for(var/mob/M in oview())//loops over all mobs in view
if(get_step_away(src,M,3))//checks distance
if(!M.client)//Not a player
continue//continues through the loop
else//Player
walk_to(src,M,1,2)//Move to the person
else//4-or-more spaces away
continue
spawn(40) move()//loops the proc after 2 seconds
proc/attackplayer()//Handles attacking
for(var/mob/M in oview(1))//Within one space this time
if(get_step_away(src,M,1))
if(!M.client)
continue
else
src.attack(M)//Calls the attack proc
else
return..()
spawn(20) attackplayer()
New()//When created
attackplayer()//Calls the procs for it
move()
thanks, VB.
cause last time i got yelled at :p