Garry's Mod

Garry's Mod

33 个评价
ruisu's Bounty System
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
更新日期
18.885 KB
2021 年 11 月 20 日 上午 9:40
2021 年 12 月 1 日 下午 6:47
6 项改动说明 ( 查看 )

订阅以下载
ruisu's Bounty System

描述
Make your top fraggers targets with this addon!
ruisu's Bounty System is a fully customisable addon that adds a mechanic similar to the mental state from GTA V. Players who surpass a certain killstreak will be marked with a bounty, and can be seen by anyone within range making them a target. Killing someone with a bounty will reward you with both XP and money.

HUD Indicators

First person indicator. No bounty

First person indicator. Has bounty.

Third person indicator. Has bounty

Milestones!

In the config, you can define an infinite amount of milestones - which when reached will grant rewards such as money and XP. Milestones can be disabled, and when done so players can define a simpler value for whenever a player kills someone when they're on a streak.

Functions
Should you wish to tinker with the addon, or integrate it into another addon I have added functions to make it easier to do so.

ply:RBSHasBounty() -- returns true or false ply:RBSSetBounty(bool) -- sets the bounty value ply:RBSGetKillstreak() -- returns the player's current killstreak ply:RBSSetKillstreak() -- sets the killstreak value ply:RBSIncrementKillstreak() -- increments the killstreak by one ply:RBSGetCurrentMilestone() -- returns the player's current milestone number

Modularity
I've designed the addon with updates in mind, so if you wish to add features just download the source code from GitHub and create a new Lua script under the "modules" folder. The addon will automatically detect this script.

Current Addon Support
  • DarkRP
  • DarkRP Levelling System
  • GlorifiedLeveling
Feel free to contact me if you'd like me to integrate support with any other addons!

Config


Gamemode Support
Currently the addon only supports DarkRP and Sandbox. By default, the addon is configured for use with DarkRP - in order to change this download the GitHub[github.com] version and disable "isdarkrp" in "ruisu_bounty_system/lua/ruisu_bounty_system/sh_config.lua".

In Sandbox, showAllBounty and giveAllBounty are best kept as "true", as these are designed primarily for DarkRP so you may run into problems with these disabled.

Planned Updates
  • Language Support
  • Reworked HUD
  • Advanced Milestones
  • NPC Support - Easy to do just not required right now!

The source code[github.com] is covered by the MIT License[en.wikipedia.org]. You can freely edit this code, but please give credit.
29 条留言
jdmp3 2024 年 5 月 9 日 下午 10:08 
support for background npcs would make it so fun to use
blazphemur 2022 年 8 月 1 日 上午 6:25 
--> [Ruisu's Bounty System] <--
[ruisu-bounty-system-main] addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sh_config.lua:10: attempt to index global 'rcs' (a nil value)
1. unknown - addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sh_config.lua:10
2. include - [C]:-1
3. load - addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sv_base.lua:34
4. unknown - addons/ruisu-bounty-system-main/lua/ruisu_bounty_system/sv_base.lua:40
5. include - [C]:-1
6. unknown - addons/ruisu-bounty-system-main/lua/autorun/ruisu_bounty_system_load.lua:6
ruisu  [作者] 2022 年 5 月 17 日 下午 2:18 
If you link me to their documentation I can add support for nMoney
Crigence 2022 年 5 月 13 日 上午 3:38 
Great add-on, but I wish it supported nMoney, honestly. That'd be superb
ruisu  [作者] 2022 年 3 月 6 日 下午 2:56 
Just set XP rewards to 0. The addon automatically detects if the XP system supported is found or not, so if it's not on the server the XP functions won't be called.
blazphemur 2022 年 3 月 6 日 上午 6:09 
Hey there I'm adding this to my server and starting to configure it. My question is, since I'm not using an XP system right now, do I remove the XP line from milestones or do I just set xp rewards to 0?
blazphemur 2022 年 2 月 17 日 下午 9:34 
awesome! thank you so much
ruisu  [作者] 2022 年 2 月 15 日 上午 6:09 
I'll have a look at possibly integrating it next update, I'm currently working on a new way to accept and view bounties.
blazphemur 2022 年 2 月 14 日 上午 1:31 
Also ply:NotifyBRCS( "" ) to notify with the credit store
blazphemur 2022 年 2 月 14 日 上午 1:28 
receiver:AddBRCS_Credits( credits ) is what I found, credits being a number.