DeadlyBOFH Posted December 5, 2002 Share 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? Link to comment Share on other sites More sharing options...
Tchouky Posted December 5, 2002 Share 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... Link to comment Share on other sites More sharing options...
Jaii der Herr Posted December 5, 2002 Share Posted December 5, 2002 if you use the handextend systen for the emote they shoudn't have the ability to fire too... Link to comment Share on other sites More sharing options...
Tchouky Posted December 5, 2002 Share 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... Link to comment Share on other sites More sharing options...
DeadlyBOFH Posted December 6, 2002 Author Share Posted December 6, 2002 tchouky: does this work for lightsaber now? Link to comment Share on other sites More sharing options...
Tchouky Posted December 6, 2002 Share Posted December 6, 2002 you also have to put a check or 2 in the bg_saber.c ... just search for :BUTTON_ATTACK Link to comment Share on other sites More sharing options...
razorace Posted December 15, 2002 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.