Skip to content

Commit

Permalink
Add compatibility for projectile launchers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivory42 authored Jan 28, 2024
1 parent 87913ab commit 30c7f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm_attribute_remote_control_rockets.sp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void OnEntityDestroyed(int entity)
public void OnRocketSpawned(int rocket)
{
int owner = GetEntPropEnt(rocket, Prop_Send, "m_hOwnerEntity");
if (HasStat(owner) && PlayerControlRockets[owner])
if (HasStat(owner) && PlayerControlRockets[owner] && !ControllingRocket[client])
{
RocketID[owner] = rocket;
RocketOverride[rocket] = true;
Expand Down

0 comments on commit 30c7f11

Please sign in to comment.