Skip to content

Commit

Permalink
Replace more m_CollisionGroup with SetEntityCollisionGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Dec 16, 2023
1 parent 4a65ce5 commit 0e4477a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/szf/infected.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand All @@ -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");
}

Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/szf/pickupweapons.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 0e4477a

Please sign in to comment.