Blockland Forums > Modification Help
Player Knockback
Pages: (1/1)
brickybob:
I'm making a player-type that is knocked backwards when shot. I already have the stats for the player (health, movement, jump, etc.) But I don't know how to make it detect a projectile hitting it and being knocked backwards (or as I should say, velocity in the opposite direction.)
Any ideas?
Edit: 18 views and no replies.
I know how to make it detect damage, but dunno how to make it get moved backwards.
Priad:
Look for a weapon with hitboxes.cs and copy paste that into your playertype folder first off, then maybe a in headnode hit or bodynode. I'm not good with that stuff I just code weapons.
brickybob:
--- Quote from: Priad on August 03, 2010, 01:55:34 AM ---Look for a weapon with hitboxes.cs and copy paste that into your playertype folder first off, then maybe a in headnode hit or bodynode. I'm not good with that stuff I just code weapons.
--- End quote ---
What weapons have hitboxes.cs?
Priad:
Ssg550 sniper I think. Just search headshot.
brickybob:
--- Quote from: Priad on August 03, 2010, 02:28:42 AM ---Ssg550 sniper I think. Just search headshot.
--- End quote ---
I can't find it. Search only finds this topic.
Pages: (1/1)