Garry's Mod

Garry's Mod

Not enough ratings
Tood's Holocron Boost System v2.0
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
216.999 MB
11 Sep, 2019 @ 4:28pm
4 Mar, 2020 @ 4:22pm
5 Change Notes ( view )

Subscribe to download
Tood's Holocron Boost System v2.0

Description


4 main holocrons - Health, Armor, Jump Power and Movement Speed.

When you press E on these holocrons they provide a temporary boost to the stats mentioned above.
These Boosts are configurable per amount given per stat and how long the boost is active until it resets.
The 4 main holocrons do not drop from NPCs, you can define in the config which NPCs will have a chance of dropping the randomholo entity.
1 holocron which will drop from NPCs, "random holocron", once this drops from the NPC, instead of providing one set buff, it chooses one randomly and gives you the boost, so this could be either of the stats mentioned above.
_____________________________________________________________________



Take the .gma, drag and drop it into gmad or any extracting application to extract it, once you have the folder open it up and look for sh_holoconfig.lua inside autorun/ and in there you will see all easy config options for you, I have left a simple comment for each config option and it should be pretty self explanatory. I have also linked my YouTube tutorial detailing the configuation options and what they relate to on the entity.
______________________________________________________________________



Tood - Coding, designing and creating the script itself.
Machine - All Holocron models and Holocron Materials.
Machines Holocron Models - https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1362937827
_______________________________________________________________________



The project pictured within this addon are not associated with the creations of wiltOS Technologies and is my own personal project. Any similarities are purely coincidental and are not representations of works produced by wiltOS Technologies.

You have full permission to edit my code to preference but must be kept at personal use only for your own server.

You do not have permission to reupload this or claim this script as your own.
If you wish to use my script in another script then do not merge the files with your own, simply add my script as "Required Content".
________________________________________________________________________

Update v1.1

- Fixed an issue for when players use the holocron, if the player goes below the default health or armor after using the holocron it will still put the health or armor back up. So now a message will print in the players chat stating they are below the value they had when they picked the holocron up.
Thanks to Veeti for pointing that out.

________________________________________________________________________

Update v1.2

- Rearranged the code to be more "Developer friendly". ply:IsAlive() changed to ply:Alive(), simple mistake but no more script errors when the values reset after 15 seconds.

________________________________________________________________________

Update v2.0
Multiple updates merged and pushed as 1 therefore, we have v2.0

v2.0 Changelog:

~ Timers for each table of values for how long the boost is active until it resets now defined in a simple config.
~ Players now need to wait a certain amount of time defined in the config to pick up another holocron after the pickup before.
~ Timer setup for "pickup time" now defined in a simple config, this has been added to restrict players from stacking the values.
~ NPC table defined in a simple config to now allow users/server owners/developers choose what NPCs should have a chance of dropping a holocron instead of every NPC having a chance.
~ All Health values added into the config.
~ All Armor values added into the config.
~ All Jump Power values added into the config.
~ All Speed values added into the config.

________________________________________________________________________

Update v2.1

~ Slight issue when a player picks up a holocron then the cooldown affected all players globally on the server. Now tested and fixed, cooldown should be by the player picking up the holocron and not globally.
________________________________________________________________________

Want to donate and support my Development Progression? Click the image below <3
[paypal.me]
________________________________________________________________________

If you have any questions or concerns then leave a comment below and I will help out as best as I can.

- Tood.
Popular Discussions View All (2)
3
4 Mar, 2020 @ 4:24pm
PINNED: Bug Reports
Tood
0
3 Mar, 2020 @ 12:01pm
PINNED: Suggestions
Tood
6 Comments
Tood  [author] 3 Mar, 2020 @ 12:27pm 
Models and materials
CupCakeR 3 Mar, 2020 @ 12:26pm 
200 MB?
Tood  [author] 3 Mar, 2020 @ 12:03pm 
v2.0 is now released, including a patch to restrict stacking.
Stbrawler 22 Feb, 2020 @ 1:02pm 
thank you
Tood  [author] 22 Feb, 2020 @ 7:30am 
I'll throw in an update for it soon
Stbrawler 19 Feb, 2020 @ 10:33am 
is there way to add a cooldown from using the next holocron??? I have set this up for my server and people been farming speed and armor and been able to stack the holocrons.