Garry's Mod

Garry's Mod

139 个评价
Oldschool Ammo & Supply
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
22.474 KB
2021 年 7 月 9 日 下午 12:43
2021 年 7 月 10 日 上午 4:56
6 项改动说明 ( 查看 )

订阅以下载
Oldschool Ammo & Supply

描述

About
Simple tool for creating oldschool regenerating ammo boxes / health packs. It's inspired by Quake, Half-Life Deathmatch: Source, Team Fortress 2.

How to
Go to the Tools menu and click the Oldschool Ammo Tool under the Jakub Baku tab.
You can select a "Loadout box" preset as an example.

  • Left click with the tool to place an ammo box
  • Right click with the tool at a prop to retrieve it's model
  • Reload the tool aiming below the ammo box to remove it

Customization
Model selection: select a model for the ammo box or pick a model using the right click on the prop,
Supply type: what does the ammo box do on pickup
  • ammo supply - supplies the ammo,
  • health supply - supplies the health, works like a medkit,
  • suit supply - supplies the suit power, works like a suit battery.
Regen time: delay between the pickup and ammo box being active again,
Ammo type: type of ammo to be supplied, only if the Supply type is set to "ammo supply", can be set to none
Weapon type: weapon given on pickup, can be set to none
Count: affects the quantity of health, ammo and suit power given on pickup,

Spin Speed: how fast should the item spin,
Z Offset: controls the height above the ground of the item,
Static: if checked the item will behave as normal prop, will not rotate,
Multi-pack: allows to further customize the ammo box, add multiple items and even spawn NPCs!

Example multi-pack:
ammo Buckshot 36 item weapon_annabelle health 20 suit 15 item item_suit

Syntax is dead simple - first goes the type and then parameters.
Here's the list (type, parameters):
  • ammo 'type' 'quantity'
    gives a quantity of specified ammo. You can find ammo types here[wiki.facepunch.com]
  • item 'class'
    spawns an item of specified class. Great for giving player a pickupable weapons but can be used to spawn a live grenade or Zombie :P
  • health 'amount'
    heals player by specified amount
  • suit 'amount'
    powers the player's suit by specified amount

Saving / Loading
Although the default Garry's Mod's saves works on ammo boxes I've implemented my own way of saving and loading the ammo boxes.

Place some ammo boxes around and when you want to save your work just go to the tool options (or hold "C"), click the "Save" button and you should see a notification. Press "Load" to load the previously saved layout. You can have multiple saves per map by changing the "Save name". The default is "save001" but it can be anything you want.

Saves are located in the garrysmod/data directory as *mapname*_hldsammotool_*savename*.txt and are compressed JSON files. "hldsammotool" postfix stands for "Half Life Deathmatch: Source Ammo Tool" which was a first name of the tool.

23 条留言
Jake_489 2023 年 5 月 29 日 下午 9:00 
Can you fix the weapon give out under the "Weapon Type" option? Do that, and this addon would be perfect!
Gnilomord 2023 年 2 月 18 日 上午 6:49 
Is it possible to add a function to disable the regen time of items?
Pvt. ashford 2023 年 1 月 10 日 下午 6:42 
how to replacement model
ShovelBucket 2022 年 5 月 27 日 下午 2:23 
it doesnt give the weapon to me, even though it is set to give me a weapon. how do you fix this? the only addon i have that i think conflicts with this is the loadout addon by styledstrike.
Ryguy 2022 年 1 月 23 日 下午 2:11 
how would I use the multipack option to give ammo from an addon i installed? typing the ammo entity name doesn't give the player the ammo and copying the entity's technical name by right clicking doesn't give it to the player either.
Peekofwar 2021 年 12 月 3 日 下午 12:14 
Can you add roll and pitch offset options so that I can place a static pistol on its side?
Anonim47  [作者] 2021 年 9 月 3 日 下午 11:17 
whaat it's used on darkrp? I don't think so, but it would be super cool if my addon was used
DeadMeat 2021 年 9 月 3 日 上午 11:17 
POV: Every fucking darkrp server.
Frasiu 2021 年 7 月 31 日 下午 5:35 
regenerative edazy suplazy ! finally !
Anonim47  [作者] 2021 年 7 月 19 日 上午 3:58 
hi Eltorro, glad you like it :)