-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expanded exploitable function detouring
A number of functions have been detoured when used on entities with IsACFEntity set to true on it. Most of these will also call ACF.CheckLegal at the time of use, and will block function use - SetMass - SetModel - SetNoDraw - SetNotSolid - Still allowed (fading door) - PhysicsInitSphere - SetCollisionBounds - SetCollisionGroup - Still allows entities to be made not collideable (context menu) Makespherical has also been blocked from use on ACF entities, and ProperClipping will be blocked on ACF entities except for procedural armor Two new convenience functions have been added for development use, ACF.Contraption.SetMass and ACF.Contraption.SetModel; these will set the appropriate variable in the entity's ACF table, and then set the mass normally. As long as Entity.ACF.Mass/Model has been set on an entity PRIOR to mass/model change, the original functions will still call the above functions Also got rid of LegalMass being set on most entities as it is not used There is also a new name-and-shame message which is disabled by default on both server and client. When enabled on the server, any time an entity is marked disabled by a legal check, a message is sent out to all players which, depending on their setting, will have a message in the console saying who, what entity, and what happened to make it disabled.
- Loading branch information
1 parent
06d5cf3
commit 6e6cd27
Showing
22 changed files
with
251 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
hook.Add("OnEntityCreated", "ACF Stub Exploitables",function(Entity) | ||
timer.Simple(1,function() | ||
if not IsValid(Entity) then return end | ||
if not Entity.IsACFEntity then return end | ||
|
||
Entity.RenderOverride = nil | ||
end) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.