Markaine Posted February 24, 2003 Share Posted February 24, 2003 Is there a way to code mp saberlocking victories\loses to always or almost always to end in dimemberments like in sp. I saw a line about gGAvoidDismember = 1; and gGAvoidDismember = 2 in g_active.c, is that what i should play with? Link to comment Share on other sites More sharing options...
Markaine Posted February 24, 2003 Author Share Posted February 24, 2003 Oh ,yeah... What is the trick to get bots to always use a lightsaber? I made a couple of bots with all different combinations of weapon weights, and they still only pull out a saber when you get really close to them, like the Tex_Qui Gon. I want them to behave like CT_Windu or MP_Vader. I even copy/pasted the exact weapon weights... Link to comment Share on other sites More sharing options...
razorace Posted February 26, 2003 Share Posted February 26, 2003 Originally posted by Markaine Is there a way to code mp saberlocking victories\loses to always or almost always to end in dimemberments like in sp. I saw a line about gGAvoidDismember = 1; and gGAvoidDismember = 2 in g_active.c, is that what i should play with? You're very close. You'll need to play with the following line (it's above the point where gGAvoidDismember = 1; in g_active.c if (clientLost && clientLost->inuse && clientLost->client && Q_irand(0, 40) > clientLost->health) The "Q_irand(0, 40) > clientLost->health" is what you're looking for. Basically, Q_irand(0, 40) is a random number between 0 and 40 + zero. If the health of the losing player is less than the Q_irand(0, 40), the player dies and is dismembered. To increase the chances of dismemberment to 100%, just remove the "Q_irand(0, 40) > clientLost->health" part of the if statement. Link to comment Share on other sites More sharing options...
Wudan Posted February 26, 2003 Share Posted February 26, 2003 Don't forget you have to turn dismemberment on in MP, I beleive razorace has done it but I've never taken the time to do it. Link to comment Share on other sites More sharing options...
razorace Posted February 26, 2003 Share Posted February 26, 2003 yeah, you need to do that too. Note: This should still kill the player even if you don't have dismemberment on. However, the hand won't visually pop off unless the server and the client has dismemberment on. Link to comment Share on other sites More sharing options...
Markaine Posted February 27, 2003 Author Share Posted February 27, 2003 Yup, everything's working perfectly. Thanks guys Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.