Cowboy6534
08-12-2012, 10:31 PM
is this part of the code where the stun duration is?
if(stun_resist <= 0 || MakeRandomInt(0,99) >= stun_resist)
{
mlog(COMBAT__HITS, "Stunned. We had %d percent resist chance.");
Stun(0);
}
else
{
if(IsClient())
Message_StringID(MT_Stun, SHAKE_OFF_STUN);
mlog(COMBAT__HITS, "Stun Resisted. We had %dpercent resist chance.");
}
the mlog(COMBAT__HITS, "Stunned. We had %d percent resist chance."); Stun(0); part? I have noticed that even though in the rules_values table there is a place to define how long stun lasts it doesnt seem to effect how long you are stunned. Should that 0 be changed to something that checks the rules_values table to see how long you should be stunned or is that something else?
if(stun_resist <= 0 || MakeRandomInt(0,99) >= stun_resist)
{
mlog(COMBAT__HITS, "Stunned. We had %d percent resist chance.");
Stun(0);
}
else
{
if(IsClient())
Message_StringID(MT_Stun, SHAKE_OFF_STUN);
mlog(COMBAT__HITS, "Stun Resisted. We had %dpercent resist chance.");
}
the mlog(COMBAT__HITS, "Stunned. We had %d percent resist chance."); Stun(0); part? I have noticed that even though in the rules_values table there is a place to define how long stun lasts it doesnt seem to effect how long you are stunned. Should that 0 be changed to something that checks the rules_values table to see how long you should be stunned or is that something else?