Garry's Mod
225 valoraciones
Dathus' Core (E2 Functions)
   
Premio
Favoritos
Favorito
Quitar
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
Tamaño
Publicado el
Actualizado el
34.326 KB
4 NOV 2012 a las 3:03 p. m.
30 JUN 2023 a las 7:02 p. m.
6 notas sobre cambios ( ver )

Suscríbete para descargar
Dathus' Core (E2 Functions)

En 2 colecciones creadas por Dathus [BR]
Zion Gamers # Server Addons: SANDBOX
69 artículos
Dathus [BR]'s Gmod Addons
6 artículos
Descripción
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 comentarios
Dathus [BR]  [autor] 7 MAR a las 9:42 a. m. 
@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 a las 7:08 a. m. 
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]  [autor] 7 FEB a las 5:07 a. m. 
@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]  [autor] 7 FEB a las 5:00 a. m. 
@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 a las 9:29 p. m. 
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]  [autor] 6 FEB a las 5:21 p. m. 
@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 a las 12:56 p. m. 
getting this error entities/gmod_wire_expression2/core/custom/dathuscore.lua:266: attempt to index local 'this' (a nil value)
mister stuck 11 SEP 2023 a las 1:34 p. m. 
Ah, thanks for responding.
Dathus [BR]  [autor] 11 SEP 2023 a las 1:04 p. m. 
@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.com/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
mister stuck 11 SEP 2023 a las 10:08 a. m. 
I can't seem to find my holoAnim() functions when I use this. Are they incompatible?