Join Date: Oct 2014
Location: in my house
Hello everyone, I think I need some help with this.
I am working on a script for Left 4 Dead 1 (ONE).
WHAT I NEED TO KNOW:
1) I need to hook when an infected is hunting someone.
We all know if there is a Tank and 4 survivor, the Tank will hunt 1 of them at a time (it is not always the closest one).
2) I need to force that infected in specific to stop hunting that survivor gotten in step 1.
WHAT I AM TRYING TO DO?
I'm trying to do a specific NOTARGET feature.
When I get black&white, I want to force all special infecteds present (hunter, smoker, boomer and tank, not witch) stop attacking me for some seconds (as if they think I am not in the map).
But they must still attack the other survivors.
WHAT I TRIED
HookEntityOutput("trigger_look", "OnTrigger", test);
RESULT: Trigger was never called.
I tested some netprops on infecteds that I thought it was the survivor they was hunting:
netprop tested: m_clientLookatTarget,
RESULT: No one of them was a vaild result, or they have never been defined (returning runtime errors).
Changing my team to infected.
RESULT: They still think I am a survivor.
If I hook event HookEvent("player_incapacitated" ....), and I get incapacitated and return Plugin_Handled, special infecteds stand still as if they think I was not in the map. They dont attack me on the ground.
Maybe there is a netprop I can set to me (survivor) that make them think I am dead, unpresent or something...
Freezing infecteds or removing their abilities is not an option because they must keep attacking other survivors except me.
Thanks in advance.
Last edited by axelnieves2012; 11-07-2018 at 06:24.