Physics update (#11165)

* Makes space drift affect everything

* Kicking & Newton's 2nd law

* Mecha fix, special attack fix

* ix

* Check on_foot() for slips
This commit is contained in:
unid15
2016-08-07 21:53:30 +02:00
committed by clusterfack
parent c158bf2c6c
commit a8f825aeee
23 changed files with 193 additions and 258 deletions

View File

@@ -14,14 +14,16 @@
return
if(a_intent == "hurt" && A.loc != src)
var/special_attack_result = SPECIAL_ATTACK_SUCCESS
switch(attack_type) //Special attacks - kicks, bites
if(ATTACK_KICK)
if(can_kick(A))
delayNextAttack(10)
if(!A.kick_act(src)) //kick_act returns 1 if the kick failed or couldn't be done
special_attack_result = A.kick_act(src)
if(special_attack_result != SPECIAL_ATTACK_CANCEL) //kick_act returns that value if there's no interaction specified
after_special_attack(A, attack_type, special_attack_result)
return
delayNextAttack(-10) //This is only called when the kick fails
@@ -33,7 +35,9 @@
delayNextAttack(10)
if(!A.bite_act(src)) //bite_act returns 1 if the bite failed or couldn't be done
special_attack_result = A.bite_act(src)
if(special_attack_result != SPECIAL_ATTACK_CANCEL) //bite_act returns that value if there's no interaction specified
after_special_attack(A, attack_type, special_attack_result)
return
delayNextAttack(-10) //This is only called when the bite fails