updates for entwatch to work

This commit is contained in:
jenz 2023-08-30 17:56:15 +02:00
parent e00352d8a0
commit 58b91973c1
5 changed files with 163 additions and 157 deletions

View File

@ -541,10 +541,11 @@ public Action OnWeaponPickup(int client, int weapon)
Call_PushCell(index);
Call_Finish();
return;
return Plugin_Handled;
}
}
}
return Plugin_Handled;
}
//----------------------------------------------------------------------------------------------------
@ -567,10 +568,11 @@ public Action OnWeaponDrop(int client, int weapon)
Call_PushCell(index);
Call_Finish();
return;
return Plugin_Handled;
}
}
}
return Plugin_Handled;
}
//----------------------------------------------------------------------------------------------------

View File

@ -9,6 +9,7 @@
#pragma newdecls required
#include <sdktools>
#include <sourcemod>
#include <clientprefs>
#include <entWatch_core>
@ -230,6 +231,7 @@ public Action OnDisplayHUD(Handle timer)
EndMessage();
}
}
return Plugin_Handled;
}
//----------------------------------------------------------------------------------------------------

View File

@ -9,6 +9,7 @@
#pragma newdecls required
#include <sdktools>
#include <sourcemod>
#include <cstrike>
#include <entWatch_core>

View File

@ -9,6 +9,7 @@
#pragma newdecls required
#include <sdktools>
#include <sourcemod>
#include <clientprefs>
#include <entWatch_core>

View File

@ -109,12 +109,12 @@ methodmap Basic < StringMap
this.SetValue(membername, value);
}
public bool GetVector(const char[] membername, float[3] vector)
public bool GetVector(const char[] membername, float vector[3])
{
return this.GetArray(membername, vector, sizeof(vector));
}
public void SetVector(const char[] membername, const float[3] value)
public void SetVector(const char[] membername, const float value[3])
{
this.SetArray(membername, value, sizeof(value));
}