diff options
| author | Scott <scotth0828@gmail.com> | 2016-05-05 22:42:51 -0400 |
|---|---|---|
| committer | Scott <scotth0828@gmail.com> | 2016-05-05 22:42:51 -0400 |
| commit | 26f185f8f83667cb2a2d4dc45559ac91d0fcd36c (patch) | |
| tree | 932930fa8fa19dfc536875963a0cfba4feae28fe /gamemode/itemsystem/items | |
| parent | 7fbe965805c7e54468c299d157e1d28c911e2579 (diff) | |
| download | gmstranded-26f185f8f83667cb2a2d4dc45559ac91d0fcd36c.tar.gz gmstranded-26f185f8f83667cb2a2d4dc45559ac91d0fcd36c.tar.bz2 gmstranded-26f185f8f83667cb2a2d4dc45559ac91d0fcd36c.zip | |
Added medicine as a resource and added images to combinations menu
Diffstat (limited to 'gamemode/itemsystem/items')
| -rw-r--r-- | gamemode/itemsystem/items/medicine.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gamemode/itemsystem/items/medicine.lua b/gamemode/itemsystem/items/medicine.lua new file mode 100644 index 0000000..7b178f8 --- /dev/null +++ b/gamemode/itemsystem/items/medicine.lua @@ -0,0 +1,19 @@ + +ITEM = {} + +ITEM.Name = "Medicine" +ITEM.Description = "Heals you!" +ITEM.Icon = "items/medicine.png" +ITEM.UniqueData = false + +local use_medicine = function(ln, player) + + LocalPlayer():ConCommand( "gms_takemedicine" ) + +end + +ITEM.Actions = {} +genericMakeDroppable(ITEM) +ITEM.Actions["Use"] = use_medicine + +GMS.RegisterResource(ITEM)
\ No newline at end of file |
