View Single Post
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 01-29-2016 , 13:35   Re: Always-Usable Impulse
Reply With Quote #12

Quote:
Originally Posted by KliPPy View Post
I can't just use get_ent_data_entity() like that, because I want to support both 1.8.3 and previous versions.
The logic is the same: skip this branch
https://github.com/ValveSoftware/hal...ayer.cpp#L1504
by setting tank to NULL
PHP Code:
public Player_PostThink_Post(this) {
    if(!
g_hasExecuted[this]) {
        static 
oldTankoldTank get_pdata_ent(thism_pTank);
        
set_pdata_ent(thism_pTank0); //This will skip the tank re-use when controlling tank
        
ExecuteHamB(Ham_Player_ImpulseCommandsthis);
        
set_pdata_ent(thism_pTankoldTank); //Everything back to normal
    
}

Quote:
Originally Posted by KliPPy View Post
Should that data be read from a text file or is this good enough? Some thoughts on that please.
I think who needs to add new offset there, will understand where to modify the script. Who do not need new offset will just be confused with extra text file.
__________________
- blupi blupi

Last edited by ujjl; 01-29-2016 at 13:43.
ujjl is offline