Quote:
Originally Posted by KliPPy
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 oldTank; oldTank = get_pdata_ent(this, m_pTank);
set_pdata_ent(this, m_pTank, 0); //This will skip the tank re-use when controlling tank
ExecuteHamB(Ham_Player_ImpulseCommands, this);
set_pdata_ent(this, m_pTank, oldTank); //Everything back to normal
}
}
Quote:
Originally Posted by KliPPy
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.
__________________