Garry's Mod

Garry's Mod

Not enough ratings
helixCore E2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Roleplay
File Size
Posted
Updated
18.488 KB
20 Jun, 2024 @ 4:35am
12 Jul, 2024 @ 9:49am
4 Change Notes ( view )

Subscribe to download
helixCore E2

In 1 collection by Alynn
Multiversal Crossroads
189 items
Description
A highly experimental addon for use with ONLY the Helix Roleplay Gamemode.

This addon adds several features that players and admins can use via Expression 2. By default this addon is disabled, so you will need to do "wire_expression2_extension_enable helixcore" in order to use it!

THIS ADDON CAN BE EXPLOITED EASILY FOR METAGAME USAGE EVEN WITH SOME FUNCTIONS BEING LOCKED TO ADMINS!

The more metagame-y functions (as well as other exploitable functions) have been locked under the CAMI permissions.


HelixCore: Player Privacy (default Admin+)
HelixCore: Player Privacy - HasItem (default Admin+)
HelixCore: Item Managment (default Admin+)
HelixCore: Player Notify (default Admin+)
HelixCore: Entity Description (default Admin+)
HelixCore: Entity Menu (default Admin+)


helixGetDate() - Returns the RP date.
helixGetDate(formatting string) - Returns the RP date with formatting.

ply:charGetAttribute(key,default number) - Returns the current value of an attribute via its string key (e.g 'str', 'agi', 'end'). Privilege locked to 'Player Privacy' (default Admin+)

ply:charGetClass() - Returns this character's current class.
ply:charGetDescription() - Returns this character's physical description.
ply:charGetFaction() - Returns this character's faction.
ply:charGetFlags() - Returns all of the flags this character has. Privilege locked to 'Player Privacy' (default Admin+)
ply:charGetID() - Returns this character's unique database ID.
ply:charGetModel() - Returns this character's model.
ply:charGetMoney() - Returns this character's money. Privilege locked to 'Player Privacy' (default Admin+)
ply:charGetName() - Returns this character's name.
ply:charHasFlags(flag string) - Returns 1 if the character has the given letter flag(s) (e.g 'p', 'P', 'E', 'T', etc.). Privilege locked to 'Player Privacy' (default Admin+)

ply:charHasItem(string) - Returns the 1 if the player has the item (e.g 'handheld_radio'). This checks both the targeted player's inventory, and any bags that their inventory has inside of it. Privilege locked to 'Player Privacy - HasItem' (default Admin+)


ply:plyIsFemale() - Returns 1 if the player currently has a female model. This checks if the model has 'female', 'alyx' or 'mossman' in its name, or if the player's model class is 'citizen_female'.
ply:plyIsRestricted() - Returns 1 if the player is restricted - that is to say that they are considered 'bound' and cannot interact with objects normally (e.g hold weapons, use items, etc). An example of this would be a player in handcuffs.
ply:plyIsWepRaised() - Returns 1 if the player has their weapon raised.


ply:plyChatNotify(string message) - Displays a notification for this player in the chatbox. Privilege locked to 'Player Notify' (default Admin+)
ply:plyNotify(string message) - Displays a prominent notification in the top-right of this player's screen. Privilege locked to 'Player Notify' (default Admin+)


entity:isItem() - Returns 1 if this entity corresponds to a dropped Helix Item
entity:itemGetDescription() - Returns the description of the item. Will most likely give an error if entity is not item, so check via isItem!
entity:itemGetID() - Returns this item's database ID. This is guaranteed to be unique. Will most likely give an error if entity is not item, so check via isItem!
entity:itemGetName() - Returns the name of the item. Will most likely give an error if entity is not item, so check via isItem!

itemSpawn(string id, vector position) - Spawns an item entity based off its unique item id (e.g 'handheld_radio') at the vector and angle given. Privilege locked to 'Item Management' (default Superadmin+) - this specific code is giving me issues, but the other itemspawns still work!
itemSpawn(string id, vector position, angle) - Spawns an item entity based off its unique item id (e.g 'handheld_radio') at the vector and angle given. Privilege locked to 'Item Management' (default Superadmin+)
itemSpawn(string id, vector position, angle, table data) - Spawns an item entity based off its unique item id (e.g 'handheld_radio') at the vector and angle given. Can be given further itemdata via a table. Privilege locked to 'Item Management' (default Superadmin+)
itemSpawn also returns the item's entity, so you can use propcore and other functions with it!

IF IMPROPERLY HANDLED, ITEMSPAWN CAN POSSIBLY CAUSE ITEM/INVENTORY ISSUES. DO NOT USE UNLESS YOU KNOW WHAT YOU ARE DOING, YOU HAVE BEEN WARNED.

--------------------------------------------------------------------------------------

HELIX ISSUES THAT MAY NEED TO BE FIXED ON YOUR END
line 68, 69, 70, 71, and 72 in helix/plugins/propprotect.lua causes issues for Advanced Duplicator 2 when it comes to Wiremod. ...For some reason.

line 111 in helix/gamemode/core/cl_skin.lua "panel:GetTitle() != "" or" causes constant lua errors when the Expression 2 window is open, however this does not cause any actual issues from my experience.

I do not advocate for altering the main Helix files!!! Disable them via your config/plugins in server and make your own edits via a new plugin in your gamemode schema!!!

--------------------------------------------------------------------------------------

WIP:
- (POSSIBLY) Item Spawning in players' inventories.
- Adding descriptions to props/entities
- Adding a menu that can be prompted onto players (akin to the item menu) and prompt outputs depending on which selection is made.
Popular Discussions View All (2)
1
20 Jun, 2024 @ 9:59pm
PINNED: Suggestions
Alynn
0
20 Jun, 2024 @ 6:21am
PINNED: Bug Reports
Alynn
3 Comments
MJ Studios 21 Jun, 2024 @ 9:03pm 
good addon mj approved :steamthumbsup:
Alynn  [author] 20 Jun, 2024 @ 6:57pm 
<3
B0su 20 Jun, 2024 @ 6:52pm 
Woe, this is useless!!

<3