Garry's Mod
Оцінок: 225
Dathus' Core (E2 Functions)
   
Нагородити
До улюбленого
В улюблених
Прибрати
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
Розмір файлу
Додано
Оновлено
34.326 KB
4 листоп. 2012 о 15:03
30 черв. 2023 о 19:02

Підпишіться, аби завантажити
Dathus' Core (E2 Functions)

В колекціях (2) автора Dathus [BR]
Zion Gamers # Server Addons: SANDBOX
Предметів: 69
Dathus [BR]'s Gmod Addons
Предметів: 6
Опис
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
Dathus [BR]  [автор] 7 берез. 2024 о 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 берез. 2024 о 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]  [автор] 7 лют. 2024 о 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]  [автор] 7 лют. 2024 о 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 лют. 2024 о 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]  [автор] 6 лют. 2024 о 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 лют. 2024 о 12:56 
getting this error entities/gmod_wire_expression2/core/custom/dathuscore.lua:266: attempt to index local 'this' (a nil value)
dbsw1972 (AlexanderB2109) 11 верес. 2023 о 13:34 
Ah, thanks for responding.
Dathus [BR]  [автор] 11 верес. 2023 о 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
dbsw1972 (AlexanderB2109) 11 верес. 2023 о 10:08 
I can't seem to find my holoAnim() functions when I use this. Are they incompatible?