Garry's Mod

Garry's Mod

Not enough ratings
Simple Medic NPC
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Roleplay
File Size
Posted
21.905 KB
28 Mar @ 10:35am
1 Change Note ( view )

Subscribe to download
Simple Medic NPC

Description
(ONLY WORKS FOR DARKRP)


SIMPLE MEDIC NPC ADDON FOR DARKRP:
I HIGHLY ADVISE YOU DIRECTLY DOWNLOAD THE FILE TO USE ON YOUR SERVER: I HAVE IT ON GAMBANANA - https://gamebanana.com/mods/503537



OVERVIEW:

-- This is a Medic NPC Addon which allows you to spawn in a medic NPC through the entities tab in the Q menu.

-- Click "E" or your interact button on the NPC to open up the health panel.

-- You can purchase health and armor through the NPC, every 1 hp of health or armor purchased the price rises. This can be adjusted with the shared file within the folder.

FEATURES:

-- Allows for NPC to be saved across server restarts through console commands.

- Use smedicnpc in console to permanently save the NPC so that you won't have to respawn the NPC every server restart. Be aware that this saves all NPCs within the world.

- Use rmedicnpc in console to permanently remove all NPCs so that they no longer spawn after restart. Be aware that for the time being this will remove all NPCs in the current world.

EDITING:

--LOCATE AND OPEN THE SHARED.LUA FILE TO CHANGE THINGS SUCH AS PRICE PER 1 HP AND ARMOR. AS WELL AS TO CHANGE THE NPCs MODEL.

-- DO NOT TOUCH THE INIT.LUA OR CL_INIT.LUA FILES AS YOU WILL BE SURE TO BREAK SOMETHING.

ADDITONAL COMMENTS:

-- I AM AWARE THAT THE FILES ARE NOT ORGANIZED BEST, THE DATA SAVING AND VGUI CREATION ARE WITHIN THE SAME 3 FILES, BUT HEY IT WORKS, SO DON'T COMPLAIN.

-- I'LL EVENTUALLY ADD ICONS AND MAKE IT LOOK AESTHETICALLY MORE APPEALING IN THE FUTURE.

- YOU MAY NOTICE THAT WHEN YOU ARE AT 0 HEALTH THE SLIDER KIND OF DISAPPEARS, DON'T FREAK OUT. IT LOOKS LIKE THAT BECAUSE YOU ARE AT FULL HEALTH. ONCE YOU TAKE DAMAGE AND GO TO THE NPC YOU SHOULD SEE THE SLIDER ADJUST TO YOUR REMAINING HEALTH NEEDED TO BE AT 100.

-- IF ANYTHING BREAKS OR IS BROKEN THAT I MISSED, PLEASE LET ME KNOW AS IT'S FRAGILE.

COMMANDS FOR SAVING THE NPC:

smedicnpc - In Console to Save Position
rmedicnpc - In Console to Remove Position

(DO NOT REUPLOAD OR EDIT)