Garry's Mod
80 оценки
Extra E2 Functions (EEF)
   
Награда
Добавяне към любими
В любими
Премахване от любими
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
Размер на файла
Публикуван на
Обновен на
3.376 KB
13 март 2015 в 5:38
15 апр. 2017 в 6:35
35 бележки за промени ( преглед )

Абониране, за да се свали
Extra E2 Functions (EEF)

В 2 колекции от EXTRA MENTAL
IBAJ Build Collection
92 артикула
Bright Spark Build
93 артикула
Описание
EEF converts most of the useful LUA functions into E2 functions.

Main Functions
E:getGroundEntity() - Gets the entity that a player/NPC is standing on.
E:isMapMade() - Is the entity created by the map?
E:timeCreated() - Gets the time that the entity was created in relation server start.
E:hasBoneManipulations() - Can the entities bones be manipulated?
E:isRagdoll() - Is the entity a ragdoll?
E:mapCreationID() - Gets the map creation ID of an entity, this ID wont change unless the map is edited. Returns -1 if the entity is not created by the map.
E:removeDecals() - Removes all decals from the entity. (Crowbars are no longer a nuisance!)
E:isPersistent() - Is the entity persistent?
E:waterLevel() - How deep is the entity in the water? 0 - Not in water. | 1 - Touching in water. | 2 - Half in water. | 3 - Fully under water.
E:canUseFlashlight() - Can the player use their flashlight?
E:getHands() - Gets the players hands.
E:canColideWithTeam() - Can the player collide with team mates?
E:getRagdoll() - Gets the players death ragdoll.
E:getWeapons() - Gets a list of weapons this player has.
E:isBot() - Is the player a bot?
E:isConnected() - Is the player (entity) connected to the server?.
E:isAuth() - Is the player authenticated with steam network?
E:isHostPlayer() - Is this player hosting the local server? (Not the same as server owner.)
E:steamID64() - Gets the 64 bit version of the players steam ID
E:stress() - Gets the physical stress being applied on the entity.
E:getAnimID() - Gets the current animation ID of the entity.
E:getAnimList() - Gets the entities list of animations as strings.
E:held() - Returns the last entity the player attempted to physgun.
E:inGod() - Is the player in god mode?
E:setUnbreakable(N) - Set if the entity can be broken by physics.
E:keepUpright(N, N) - Apply keep upright to the entity. Args: (BoneID, Strength)

killOwner() - Kills the owner of the E2.
freezeOwner(N) - Freezes the owner preventing control such as WASD and mouse movement, removing the initial E2 that froze you will automatically unfreeze you if you get stuck.

Event Functions
runOnPlyConnect(N) - Enable or disable this E2 execution on player connect/spawn/disconnect.
plyConnectClk() -Returns 1 if the E2s execution was caused by a player connecting.
plyConnectName() - Returns the name of the player that just connected to the server. (It cannot return the player entity as it hasnt been created yet)
plySpawnClk() - Returns 1 if the E2s execution was caused by a player spawning.
plySpawn() - Returns the player that spawned.
plyDisconnectClk() - Returns 1 if the E2s execution was caused by a player disconnecting.
plyDisconnect() - Returns the player that disconnected.

Important Information
All bugs, crashes and errors should be reported here so I can resolve them.

If the functions arent working they may be disabled. You will need to enter a command in your console.
Latest version: wire_expression2_extension_enable EFF
Older versions: wire_expression2_extension_enable e2extras
You may need to restart your client/server for it to take affect.
29 коментара
Revenant Moon sups.gg 10 септ. в 10:36 
it isn't, the problem is you are referencing a variable that has yet to be set.
EXTRA MENTAL  [автор] 25 дек. 2021 в 17:12 
Rooki 24 дек. 2021 в 4:31 
it got updated so that wrong hook.adds() isnt silently failed

Is that an empty hook.Add()??? or check gmod wiki
EXTRA MENTAL  [автор] 23 дек. 2021 в 14:41 
that is an error involving my code yes but it says its errored on a commented line, the code around it hasnt chaned in 6 years so idk what its problem is
Rooki 20 дек. 2021 в 11:02 
Is it possible that this error is yours? [Wiremod] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:31
2. unknown - entities/gmod_wire_expression2/core/custom/e2extras.lua:6
3. pcall - [C]:-1
4. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:88
5. pcall - [C]:-1
6. e2_include_finalize - lua/entities/gmod_wire_expression2/core/extloader.lua:101
7. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:172
8. include - [C]:-1
9. unknown - lua/entities/gmod_wire_expression2/core/init.lua:195
10. include - [C]:-1
11. unknown - lua/entities/gmod_wire_expression2/shared.lua:26
12. include - [C]:-1
13. unknown - lua/entities/gmod_wire_expression2/init.lua:3

On Startup after the new update
Sanders 1 юни 2019 в 11:28 
ok ill get it when the e2 fails again and paste it here lol sorry i was tired when i posted lol
EXTRA MENTAL  [автор] 31 май 2019 в 23:14 
need more info than that
Sanders 28 май 2019 в 12:25 
E:getWeapons() breaks an e2 if the entity is a player / npc it kills the e2..........
Harry V1.15.4 8 ноем. 2018 в 5:17 
For other people?
EXTRA MENTAL  [автор] 8 ноем. 2018 в 0:54 
why did you ask me to do it when you can do it yourself?