Garry's Mod

Garry's Mod

Not enough ratings
[SWRP] Pickup Items Base
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
0.002 MB
Nov 29, 2019 @ 6:13am
Nov 29, 2019 @ 11:16am
5 Change Notes ( view )

Subscribe to download
[SWRP] Pickup Items Base

Description

A stupid simple pickup item base supporting Armor, Health and Ammo being given to players when they press E on it.

Originally made for the Rapadant Networks Clonewars RPG server.
Feel free to join us by typing `connect join.rapadantnetworks.org:27125` in your game console

You can also add additional pickup items through the below tutorial:
  • 1. Create a item_name.lua file in `addons/my_items/lua/entities/`
  • 2. inside the file put the following code(more examples can be found here: )
AddCSLuaFile()
ENT.Type = 'anim'
ENT.Base = 'vaas_pickups'
ENT.PrintName = 'Item Name Here'
ENT.Author = 'Your name here'
ENT.Information = 'What the item does'
ENT.Category = 'Rapadant Networks|Pickups'
ENT.ammo = {a = 100,t = 'ar2'} -- a is how much of the ammo to give the player, t is the type of ammo to give them.
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Model = 'models/starwars/items/power_cell.mdl'` -- the model for your item.
  • 3. and thats it. you've just added your first new pickup item.

There are a few ConVars for you to use to change a few things btw
  • vaas_pu_health_sound - Change the default health pickup sound. (File Path)
  • vaas_pu_armor_sound - Change the default armor pickup sound. (File Path)
  • vaas_pu_ammo_sound - Change the default ammo pickup sound. (File Path)
  • join_rapadant_networks - Disable the chat advert from poping up (1 = on, 0 = off)


  • Models and sounds by Syntax Error
  • Code by Vaas Kahn Grim
This addon contains no models or sounds itself. It does however use the sounds and models from the old pack used by servers before. It has the resource.AddWorkshop() already setup for you so no need to go through extra work setting that up.

I also take map commissions as well WHEN I HAVE THE TIME! :) Feel Free to contact me


Want to help support me creating new things for you and the community? Head on over to my patron page! Every dollar helps me by giving me motivation to continue making new things for you guys to enjoy. https://www.patreon.com/RapadantDevelopment

If your interested in any of my other services or products please feel free to visit my site for information and pricing.
[store.rapadanthosting.org]
< >
1 Comments
Vaas Kahn Grim | Lord of Owls  [author] Nov 29, 2019 @ 9:14am 
Disclaimer, this was made in about 2 hours after I had the idea to make 'the most difficult to read entity base without involving any form of real protection on the source code'.

I KNOW this is not the proper way to make an entity.
I KNOW this will be insanely annoying for anybody trying to edit the base.
I KNOW that this thing may have a minor performance impact(if any its almost completly unnoticed)
I KNOW that this thing is a public addon.
I KNOW about gmod workshop rules(I DOUBLE CHECKED 3 TIMES AND IT IS WELL WITHIN THE RULES!!! lol)