• Funtities - Easy way to make entities
    9 replies, posted
[B]Funtities ( Fun Entities )[/B] Fun Entities is a very simple addon that allows the person to create their own entities with ease. Currently you're only able to create entities that give health or armor. If you have a roleplay server and want entities for that purpose then this is the addon for you. [b]How entities are made:[/b] [code]AddCSLuaFile() ENT.PrintName = "Armor Kit" -- Set the name of the entity. ENT.funModel = "models/items/battery.mdl" -- Sets the model of the entity. ENT.funSound = "items/battery_pickup.wav" -- Sets the sound of the entity on use. ENT.funMode = "health" -- Sets the mode of the entity. ( health, armor, or hunger ) ENT.funAmount = 15 -- Sets the value given to the player upon use. ENT.funLimit = 100 -- Sets the max value that player can receive from entity. ENT.funChat = false -- Enable for chat messages upon entity use. ENT.funChatMsg = "Message goes here." -- What you want the chat message to say. -- General Information for Entity ENT.Base = "funtities_base" ENT.Category = "Fun Entities" ENT.Purpose = "Consume for armo" ENT.Spawnable = true ENT.AdminSpawnable = true[/code] [b]Changelog:[/b] Update 1/27/14 - Changed how funMode functions. - Added HungerMod support for DarkRP 2.5 servers. - Added example entity for HungerMod. - Restructured entities. Update 1/26/14 - Added option for adding chat messages to your entities. [b]Downloads:[/b] Github: [url]https://github.com/dkoz/funtities[/url]
Will it show that the player is given armor/health ( is there notice like when you pickup HL2 entities? )
There is no notice that appears. It can be added though.
I have draged and dropped this into my addons. However the health and armor isnt buy able for people in the F4 menu. Do you know why?
You do realize you have to make the shipments yourself in the DarkRP configuration files.
Ah didn't know that. Maybe making buyable entities for the F4 menu or shipments for the 3 included items may help people create new ones.
People should be able to create their own entities in the f4 menu without my help. It's quite simple, here is an example for the medkit; [code]DarkRP.createEntity( "Med Kit", { ent = "funtities_healthkit", model = "models/items/healthkit.mdl", price = 500, max = 2, cmd = "buymedkit" })[/code] If you want a shipment here; [code]DarkRP.createShipment( "Med Kits", { model = "models/items/healthkit.mdl", entity = "funtities_healthkit", price = "2500", amount = 5, seperate = false, pricesep = 0, noship = false, allowed = { TEAM_MEDIC } })[/code]
i love fun[B]tities[/B]
Shhhh you're going to give away my secret!
Sneaky move c:
Sorry, you need to Log In to post a reply to this thread.