Garry's Mod

Garry's Mod

210 ratings
Nexus Core (E2 Functions)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Tags: Fun
Tags: admin
File Size
Posted
Updated
0.006 MB
4 Nov, 2012 @ 3:03pm
11 Apr, 2013 @ 9:25am
4 Change Notes ( view )

Subscribe to download
Nexus Core (E2 Functions)

In 2 collections by Dathus [BR]
Zion Gamers # Server Addons: SANDBOX
64 items
Nexus' Addons
6 items
Description
Github Repository
You can download, Send a contribution or add a new Issue at https://github.com/ZionDevelopers/NexusCore

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() -- 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)
tableToJson(Table) -- Convert a Table into a JSON String
jsonToTable(String) -- Convert a JSON String back to Table
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:disableFallDamage() -- Disable Fall Damage to a Player
Entity:enableFallDamage() -- ReEnable Fall Damage to a Player
Entity:egpHUDSetPlayer(Entity) -- Set a Player to See an EGP HUD

Functions With AntiSpam (2 Seconds Delay) Protection
Teleport, TakeDamage
* Functions With Prop Protection: Teleport, ApplyPlayerForce, SetCollideAll, RemoveNoCollideAll, Ignite, Extinguish, TakeDamage, Animate, DisableFallDamage, Enable Fall Damage, egpHUDSetPlayer.

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

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

Soon I'll make a Video Demonstration of all Functions.

Only send an Error Report with an Error Log, And create a new Issue on Github Repository[github.com],

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

Wiremod updated and working is required.

You can Download Wiremod + Wire Extras on https://github.com/wiremod

Popular Discussions View All (2)
3
4 Aug, 2021 @ 11:50am
[BUG] egpHUDSetPlayer
Örlog
0
17 Nov, 2020 @ 10:29pm
[BUG] Realistic fall damage won't work
꧁ Mr.lRoberth- ꧂
< >
109 Comments
Roxieboy16 11 Jul, 2022 @ 8:47pm 
how do i use this??
DogeisCut 20 Nov, 2021 @ 9:57pm 
setNoCollide all and Ignite should have number inputs, NoCollide would change the nocollide state, and Ignite would change the ignition length
EnginesThey'reAmazing 17 Apr, 2021 @ 1:08pm 
how do I enable this core?
Niterux 10 Apr, 2021 @ 2:21am 
Yeah... this breaks addons that change fall damage...
꧁ Mr.lRoberth- ꧂ 17 Nov, 2020 @ 10:28pm 
Note for everyone DarkRP server owner...
This will revert realistic fall damage, doesn't matter if you set it as true on the DarkRP settings.
Best option, is to download the .gma and uncompress it, and go to line 42 in nexuscore.lua
Replace the whole function with this one:

function GetFallDamage( ply, flFallSpeed )
if ( FallDamageList[ply:UniqueID()] == "DISABLE") then
return 0
end
end

And upload the folder to your /addons/ folder, and that'll fix it.
Hopefully the developer finds a permanent fix for this, since it took me over 3 hours to go through every addon (workshop and directory) to solve this issue.
avangard 25 Jan, 2020 @ 10:57pm 
That castrated E2Power...
Dathus [BR]  [author] 19 Jan, 2019 @ 7:11am 
@jacob123456798, setPos is only for props. Teleport is for anything.
Jacbo 12 Nov, 2018 @ 11:59am 
What's the difference between your teleport() and the stock setPos()
Supai 6 Jul, 2018 @ 8:37am 
setOwner(Entity) Doesn't work. Im still the owner.
Cocoa Puffs 4 Jun, 2018 @ 10:36pm 
im trying to teleport entities... but it just doesnt work! (health vial entities)