DeadlyBOFH Posted December 5, 2002 Posted December 5, 2002 How would i prevent someone from being able to shoot a weapon if they were in an emote position Lets say they're in BOTH_SLEEP2 How would i make it so that they cant fire a weapon or turn on the saber?
Tchouky Posted December 5, 2002 Posted December 5, 2002 bg_pmove.c : PM_Weapon() instead of : if (pm->ps->weaponTime < 1 && (pm->cmd.buttons & (BUTTON_ATTACK|BUTTON_ALT_ATTACK))) add : if (pm->ps->weaponTime < 1 && (pm->cmd.buttons & (BUTTON_ATTACK|BUTTON_ALT_ATTACK)) && ps->torsoAnim != BOTH_SLEEP2 ) should work...
Jaii der Herr Posted December 5, 2002 Posted December 5, 2002 if you use the handextend systen for the emote they shoudn't have the ability to fire too...
Tchouky Posted December 5, 2002 Posted December 5, 2002 right, i didn't think about this. it would be easier because you wouldn't have to check for all the anims...
DeadlyBOFH Posted December 6, 2002 Author Posted December 6, 2002 tchouky: does this work for lightsaber now?
Tchouky Posted December 6, 2002 Posted December 6, 2002 you also have to put a check or 2 in the bg_saber.c ... just search for :BUTTON_ATTACK
razorace Posted December 15, 2002 Posted December 15, 2002 You could also just add to weaponTime when you go into the animation. But, that would only prevent weaponfire for that given amount of time. For a perm no-attack, TCK's method would probably work best.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.