mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Change modified sneak pull assist range to a rule. Fixed formatting on decls.
This commit is contained in:
parent
b2e4e91fbd
commit
3bafc5b3f4
@ -502,6 +502,7 @@ RULE_BOOL(Combat, ClassicNPCBackstab, false, "True disables NPC facestab - NPC g
|
||||
RULE_BOOL(Combat, UseNPCDamageClassLevelMods, true, "Uses GetClassLevelDamageMod calc in npc_scale_manager")
|
||||
RULE_BOOL(Combat, UseExtendedPoisonProcs, false, "Allow old school poisons to last until characrer zones, at a lower proc rate")
|
||||
RULE_BOOL(Combat, EnableSneakPull, false, "Enable implementation of Sneak Pull")
|
||||
RULE_INT(Combat, SneakPullAssistRange, 400, "Modified range of assist for sneak pull")
|
||||
RULE_CATEGORY_END()
|
||||
|
||||
RULE_CATEGORY(NPC)
|
||||
|
||||
@ -3241,10 +3241,10 @@ void NPC::AIYellForHelp(Mob *sender, Mob *attacker)
|
||||
float assist_range = (mob->GetAssistRange() * mob->GetAssistRange());
|
||||
|
||||
if (RuleB(Combat, EnableSneakPull) && attacker->sneaking) {
|
||||
assist_range=(20*20);
|
||||
assist_range=RuleI(SneakPullAssistRange);
|
||||
if (attacker->IsClient()) {
|
||||
float clientx=attacker->GetX();
|
||||
float clienty=attacker->GetY();
|
||||
float clientx = attacker->GetX();
|
||||
float clienty = attacker->GetY();
|
||||
if (attacker->CastToClient()->BehindMob(mob, clientx, clienty)) {
|
||||
assist_range = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user