View Single Post
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-25-2022 , 23:04   Re: [L4D2] Crash on CNavArea::Contains(Vector const&) const + 0x13
Reply With Quote #7

Quote:
Originally Posted by cravenge View Post
I'm still wrapping my head around your extension since it's a little bit confusing for me to be honest even with examples given.
Off-top

About crash mentioned in topic you can just block it and kill charger but it's not the best idea to block action since probably some plugin breaks something that causes this crash so crash will happen again with some other action.

PHP Code:
#include <actions>

public void OnActionCreatedBehaviorAction actionint actor, const char[] name )
{
    if ( 
strcmp(name"ChargerReturnToNavMesh") == )
        
action.OnStart OnStart;
}

public 
Action OnStartBehaviorAction actionBehaviorAction priorActionActionResult result )
{
    
ForcePlayerSuicide(action.Actor);
    
result.type DONE;
    return 
Plugin_Handled// Plugin_Handled will block calling original function

__________________
cry
BHaType is offline
Send a message via AIM to BHaType