Garry's Mod

Garry's Mod

223 ratings
Dathus' Core (E2 Functions)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
34.326 KB
4 Nov, 2012 @ 3:03pm
30 Jun, 2023 @ 7:02pm
6 Change Notes ( view )

Subscribe to download
Dathus' Core (E2 Functions)

In 2 collections by Dathus [BR]
Zion Gamers # Server Addons: SANDBOX
69 items
Dathus [BR]'s Gmod Addons
6 items
Description
A group of Expression 2 (Wiremod) functions.
The addon is still being developed, some functions are not working anymore, and will be fixed, Send a bug report if you find any lua errors generated by this addon.

Version: 1.3.1

Github Repository
You can download, Send a contribution or add a new Issue at https://github.com/ZionDevelopers/DathusCore

Expression 2 functions
Entity:teleport(Vector) -- Teleport Entity to a Position on Gmod Map Entity:playerUniqueId() -- Return the Player Unique ID Entity:applyPlayerForce(Vector) -- Like ApplyForce but with Player Entity:hasNoCollideAll() -- Check if Prop Has NO-Collide All and return 1 or 0 (True or False) Entity:setCollideAll() -- Set NO-Collide All on a Prop Entity:removeNoCollideAll() -- Remove the NO-Collide All from the Prop Entity:setOwner(Entity) -- ReSet the Owner of the Prop (ADMIN ONLY) Entity:ignite(Number) -- Put a Entity on Fire Entity:extinguish() -- Remove the Fire of the Entity Entity:setHealth(Number) -- Set Player's Health (ADMIN ONLY) Entity:takeDamage(Number) -- Do Damage on Prop (NOT WORK WITH PLAYERS) Entity:set(String, String) -- Set A Property on a Entity (Like Color) (ADMIN ONLY) Entity:set(String, Number) -- Set A Property on a Entity (Like Color) (ADMIN ONLY) Entity:animate(Number) -- Animate a Prop (Sequence) (Only with Props) Entity:animate(String) -- Animate a Prop (Sequence) (Only with Props) Entity:animate(Number, Number) -- Animate a Prop (Sequence) (Only with Props) Entity:animate(String, Number) -- Animate a Prop (Sequence) (Only with Props) Entity:getAnimation() -- Get the Current Prop's Animation Entity:getAnimationByName(String) -- Get The Animation Number by Aninamtion Name (Like Fire) Entity:egpHUDSetPlayer(Entity) -- Set a Player to See an EGP HUD (You should run it once)

Functions With AntiSpam (2 Seconds Delay) Protection
Teleport, TakeDamage

Functions With Prop Protection
Teleport, ApplyPlayerForce, SetCollideAll, RemoveNoCollideAll, Ignite, Extinguish, TakeDamage, Animate, egpHUDSetPlayer.

E2 Code Demonstration: http://pastebin.com/MSV6tUJr

All functions developed by me, I took a good time to make it.

*You can only use Other Player's Props or Players that have you on his Prop Protection List.

Mirror
Download from Github[github.com]

License
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International[creativecommons.org]

Errors Report Only on Github Issue Tracker[github.com]

Requirement
You need Wiremod to use this add-on, it can be downloaded on Wiremod's Github[github.com]

135 Comments
Dathus [BR]  [author] 7 Mar @ 9:42am 
@Darmagon, No, It was never a function on this add-on. You must be mistaking for other add-on. On the link "E2 Code Demostration" there is all the original functions. And this function was not there.
Darmagon 7 Mar @ 7:08am 
Think there used to be an "e:getSequenceList()" which was very useful for finding animations without guessing. Was it removed or is some bug making it not appear.
Dathus [BR]  [author] 7 Feb @ 5:07am 
@Sanders, I tested the function and is working fine. my code was entity():isWeldedTo():setNoCollideAll() and attached the E2 to a prop. The prop got noCollideAll as it should. If is not working for you, you are doing something wrong.
Dathus [BR]  [author] 7 Feb @ 5:00am 
@Sanders, some functions require parameters, This error is related to setNoCollideAll(), If you call this function without any parameters like setNoCollideAll() it will error out, or you call the function with a variable attached to a non-existing entity, it will generate this error.
You must call the function attached to a variable like: entityVariable:setNoCollideAll() where entityVariable can be any variable name. You got it now?
Sanders 6 Feb @ 9:29pm 
care to explain on " make sure the function you are using have the required parameters" cause last i checked the code isnt doing this but on one side of the code. as when i set an entity to spawn i set it to no collide all so it shesnt freak out but ill look again.
Dathus [BR]  [author] 6 Feb @ 5:21pm 
@Sanders, make sure the function you are using have the required parameters, This error should not happen, still, the function you are using requires one entity to apply, if you are calling setNoCollideAll() without an entity, You should run entity:setNoCollideAll() , entity is the variable example you should use any var for the required function.
Sanders 6 Feb @ 12:56pm 
getting this error entities/gmod_wire_expression2/core/custom/dathuscore.lua:266: attempt to index local 'this' (a nil value)
dbsw1972 (AlexanderB2109) 11 Sep, 2023 @ 1:34pm 
Ah, thanks for responding.
Dathus [BR]  [author] 11 Sep, 2023 @ 1:04pm 
@dbsw1972 (AlexanderB2109), It should not be incompatible, all expression 2 extensions should be compatible with each other if it does not use the same function names.
I tested, installed wire extras, enabled the extension, and is working fine as you can see here: https://steamproxy.net/id/dathusbr/screenshot/2039622841082349609/ probably you disabled the holoanim extension or an update disable it. To me is working just fine. Make sure holoanim extension is enabled in the Q Menu
dbsw1972 (AlexanderB2109) 11 Sep, 2023 @ 10:08am 
I can't seem to find my holoAnim() functions when I use this. Are they incompatible?