Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Update 1.9.5
Browse files Browse the repository at this point in the history
Hopefully fixed a crash in the no block subplugin
  • Loading branch information
x07x08 authored Jun 7, 2023
1 parent 2ed9b95 commit 350a626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file modified Subplugins/NoBlock/plugins/TF2DodgeballNoBlock.smx
Binary file not shown.
9 changes: 5 additions & 4 deletions Subplugins/NoBlock/scripting/TF2DodgeballNoBlock.sp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define PLUGIN_NAME "[TFDB] No block"
#define PLUGIN_AUTHOR "x07x08"
#define PLUGIN_DESCRIPTION "Removes collision between enemies."
#define PLUGIN_VERSION "1.0.2"
#define PLUGIN_VERSION "1.0.3"
#define PLUGIN_URL "https://github.com/x07x08/TF2-Dodgeball-Modified"

#define COLLISION_GROUP_PUSHAWAY 17
Expand All @@ -35,7 +35,7 @@ public void OnPluginStart()
{
if (!IsClientInGame(iClient) || !IsPlayerAlive(iClient)) continue;

SetEntityCollisionGroup(iClient, COLLISION_GROUP_PUSHAWAY);
SetEntProp(iClient, Prop_Data, "m_CollisionGroup", COLLISION_GROUP_PUSHAWAY);
}
}

Expand Down Expand Up @@ -63,5 +63,6 @@ public void OnPlayerSpawn(Event hEvent, char[] strEventName, bool bDontBroadcast

if (GetClientTeam(iClient) <= 1) return;

SetEntityCollisionGroup(iClient, COLLISION_GROUP_PUSHAWAY);
}
// SetEntityCollisionGroup makes the server crash after a while. No idea why.
SetEntProp(iClient, Prop_Data, "m_CollisionGroup", COLLISION_GROUP_PUSHAWAY);
}

0 comments on commit 350a626

Please sign in to comment.