Garry's Mod

Garry's Mod

226 arvostelua
Dathus' Core (E2 Functions)
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
Tiedostokoko
Julkaistu
Päivitetty
34.326 KB
4.11.2012 klo 15.03
30.6.2023 klo 19.02
6 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Dathus' Core (E2 Functions)

2 kokoelmassa, tekijä Dathus [BR]
Zion Gamers # Server Addons: SANDBOX
69 luomusta
Dathus [BR]'s Gmod Addons
6 luomusta
Kuvaus
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]

136 kommenttia
[TR] James [YT] 17.1. klo 14.30 
Wish the animate worked more like holoAnim as with holoAnim it plays the whole animation while animate doesn't seem to play the whole animation unless there's another addon that does holoAnim but for props
Dathus [BR]  [tekijä] 7.3.2024 klo 9.42 
@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.3.2024 klo 7.08 
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]  [tekijä] 7.2.2024 klo 5.07 
@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]  [tekijä] 7.2.2024 klo 5.00 
@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.2.2024 klo 21.29 
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]  [tekijä] 6.2.2024 klo 17.21 
@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.2.2024 klo 12.56 
getting this error entities/gmod_wire_expression2/core/custom/dathuscore.lua:266: attempt to index local 'this' (a nil value)
AlexanderB2109 11.9.2023 klo 13.34 
Ah, thanks for responding.
Dathus [BR]  [tekijä] 11.9.2023 klo 13.04 
@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