From 0e4477ad9b5f9033b137fdb336327a19df9469ea Mon Sep 17 00:00:00 2001 From: FortyTwoFortyTwo Date: Sat, 16 Dec 2023 21:50:17 +0000 Subject: [PATCH] Replace more m_CollisionGroup with SetEntityCollisionGroup --- addons/sourcemod/scripting/szf/infected.sp | 4 ++-- addons/sourcemod/scripting/szf/pickupweapons.sp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sourcemod/scripting/szf/infected.sp b/addons/sourcemod/scripting/szf/infected.sp index 2e1760a6..7dbd0268 100644 --- a/addons/sourcemod/scripting/szf/infected.sp +++ b/addons/sourcemod/scripting/szf/infected.sp @@ -867,7 +867,7 @@ public void Infected_OnJockeyThink(int iClient, int &iButtons) g_iJockeyTarget[iClient] = 0; SetEntityMoveType(iClient, MOVETYPE_WALK); - SetEntProp(iClient, Prop_Send, "m_CollisionGroup", COLLISION_GROUP_PLAYER); + SetEntityCollisionGroup(iClient, COLLISION_GROUP_PLAYER); } } } @@ -891,7 +891,7 @@ public void Infected_OnJockeyTouch(int iClient, int iToucher) Shake(iToucher, 3.0, 3.0); SetEntityMoveType(iClient, MOVETYPE_NONE); - SetEntProp(iClient, Prop_Send, "m_CollisionGroup", COLLISION_GROUP_DEBRIS_TRIGGER); + SetEntityCollisionGroup(iClient, COLLISION_GROUP_DEBRIS_TRIGGER); SDKCall_PlaySpecificSequence(iClient, "jockey_ride"); } diff --git a/addons/sourcemod/scripting/szf/pickupweapons.sp b/addons/sourcemod/scripting/szf/pickupweapons.sp index 57421220..74166a25 100644 --- a/addons/sourcemod/scripting/szf/pickupweapons.sp +++ b/addons/sourcemod/scripting/szf/pickupweapons.sp @@ -145,7 +145,7 @@ public void SetWeapon(int iEntity) } - SetEntProp(iEntity, Prop_Send, "m_CollisionGroup", COLLISION_GROUP_DEBRIS_TRIGGER); + SetEntityCollisionGroup(iEntity, COLLISION_GROUP_DEBRIS_TRIGGER); AcceptEntityInput(iEntity, "DisableShadow"); AcceptEntityInput(iEntity, "EnableCollision");