Garry's Mod

Garry's Mod

225 hodnocení
Dathus' Core (E2 Functions)
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
Velikost souboru
Přidáno
Aktualizováno
34.326 KB
4. lis. 2012 v 15.03
30. čvn. 2023 v 19.02
Poznámky ke změnám (6) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Dathus' Core (E2 Functions)

V 2 kolekcích od uživatele Dathus [BR]
Zion Gamers # Server Addons: SANDBOX
69 položek
Dathus [BR]'s Gmod Addons
6 položek
Popis
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]

Počet komentářů: 135
Dathus [BR]  [autor] 7. bře. v 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. bře. v 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]  [autor] 7. úno. v 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]  [autor] 7. úno. v 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. úno. v 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]  [autor] 6. úno. v 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. úno. v 12.56 
getting this error entities/gmod_wire_expression2/core/custom/dathuscore.lua:266: attempt to index local 'this' (a nil value)
mister stuck 11. zář. 2023 v 13.34 
Ah, thanks for responding.
Dathus [BR]  [autor] 11. zář. 2023 v 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.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. zář. 2023 v 10.08 
I can't seem to find my holoAnim() functions when I use this. Are they incompatible?