mini update

This commit is contained in:
jenz 2023-01-02 21:10:20 +01:00
parent 8b8f6601ff
commit 0ba82cf400

View File

@ -110,18 +110,16 @@ public MRESReturn OnGetRunCmdPre(int entity, Handle hReturn)
return MRES_Ignored;
//check here if fell off edge, if did change some boolean around tell it to OnPlayerRunCmd when still on ground there
if (IsValidClient(entity) && IsPlayerAlive(entity) && !(GetEntityFlags(entity) & FL_ONGROUND) && !has_to_jump_bots[entity])
if (IsValidClient(entity) && IsPlayerAlive(entity) && !(GetEntityFlags(entity) & FL_ONGROUND) && !has_to_jump_bots[entity]
&& is_bot_player(entity))
{
has_to_jump_bots[entity] = 1;
}
return MRES_Supercede;
return MRES_Ignored;
}
//
// Fix ladder tp aswell, they fail getting up ladders sometimes with the change. otherwise good
//
public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2])
{
//we use info we just got from OnPlayerRunCmdPre to determine if to jump