Raised This Month: $18 Target: $400
 4% 

[REQ][L4D1] Tank ignores incapacitated survivors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 11-24-2019 , 21:11   [REQ][L4D1] Tank ignores incapacitated survivors
Reply With Quote #1

I want tanks ignore incapacitated survivors just like L4D2. I tried my best working on it but I could not find which netprop is Tank's target stored in.

FAILED TRIES:
This is a list of my failed tries attempting to find TANK'S current target. Some of them returns runtime errors.
Code:
int target = GetEntPropEnt(attacker, Prop_Send, "m_hUseEntity");
int target = GetEntPropEnt(attacker, Prop_Send, "m_hViewEntity");
int target = GetEntPropEnt(attacker, Prop_Send, "m_hConstraintEntity");
int target = GetEntPropEnt(attacker, Prop_Send, "m_hTargetEntity");
int target = GetEntPropEnt(attacker, Prop_Send, "m_fOnTarget");
int target = GetEntPropEnt(attacker, Prop_Send, "m_clientLookatTarget");
int target = GetEntPropEnt(attacker, Prop_Send, "m_survivor");
int target = GetEntPropEnt(attacker, Prop_Send, "m_bAutoAimTarget");
int target = GetEntPropEnt(attacker, Prop_Send, "m_pushEntity");
The only working netprop I've found was:
PHP Code:
int target GetEntPropEnt(attackerProp_Send"m_lookatPlayer"); 
But whenever I set it to another value, tank doesn't stop pounding his victim.
Adding a dead flag to victim is not the solution, because I want the incapacitated victim is still a target for hunters, witch and normal zombies.
Besides that, if we set a dead flag to incpacitated victim, sacrifice finale may fail if the incapacitated one is marked as dead (two survivors alive required to complete finale).
axelnieves2012 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:30.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode