GG-Assists v1.0.1

Release your plugins here!
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

GG-Assists v1.0.1

Postby satoon101 » Sat Oct 21, 2017 7:04 pm

GG-Assists is a sub-plugin for GunGame that allows players to level up using points of damage they have accumulated against enemies that were killed by other players.

Installation
Download the attached zip file and extract it into your server's base directory (the same directory where you extracted Source.Python and GunGame).

Configuration
Once you have installed GG-Assists, GunGame must be loaded (reloaded) on your server to create the configuration file. The file should be located at ../cfg/source-python/gungame/custom_plugins/gg_assists.cfg. Edit the file to your liking. The default cfg file currently looks like this:

Code: Select all

// Default Value: 50
// The percentage of points to be awarded for damage done to players.
   gg_assists_percent 50


// Default Value: 100
// The starting assist points for redeeming to earn a level.
   gg_assists_start_amount 100


// Default Value: 20
// The amount to increase the cost for each level.
   gg_assists_level_increase 20


// Default Value: 0
// Enable/Disable allowing only players who are still alive to gain assist
//   points.
   gg_assists_alive_only 0


// Default Value: 0
// Enable/Disable skipping a nade level by redeeming assist points.
   gg_assists_skip_nade 0


// Default Value: 0
// Enable/Disable skipping a knife level by redeeming assist points.
   gg_assists_skip_knife 0


// Default Value: 0
// Enable/Disable allowing winning from redeeming assist points.
   gg_assists_allow_win 0


Once you have it configured, add gg plugin load assists to one of the configuration files you use on your server and restart the server.

Help wanted/needed

There are translations for GG-Assists. Currently only English is supported. If you know more than one language, please assist me by posting a pull request to update the translations.

If you find a bug or enhancement, please submit an issue on the issue tracker or a pull request. The repository can be found here:
https://github.com/satoon101/GunGame-Assists

Current version download
gg_assists - v1.0.1.zip
(8.7 KiB) Downloaded 708 times



Older versions
gg_assists - v1.0.0.zip
(8.76 KiB) Downloaded 778 times
Image
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: GG-Assists v1.0.1

Postby satoon101 » Sun Feb 04, 2018 2:30 am

GunGame Assists Update!
Version: 1.0.1
Version Notes:
  • Changed Player.team->team_index.
Image
[+35]Jumpman
Junior Member
Posts: 14
Joined: Tue Jul 24, 2018 9:26 am

Re: GG-Assists v1.0.1

Postby [+35]Jumpman » Thu Aug 09, 2018 8:47 pm

Nice plugin you made there :-)

I have some questions about your version and if it is possible you want or can change the scripts ?

In gungame 5.1 one of my clan members made a little change in gg_assist.py for about 2 years ago, maybe you could do the same in your version many of our members and guest will be very happy if your version could do the same is that possible the script was write by XE_ManUp before my clan member make the changes ?

Change in our plugin, i just write what we have of settings in our gg_assist.cfg but if you want the script you just say i dont know if the scripts we use in gungame 5.1 work in python i not think so, im not a code writer sorry.

// ============================================================================
// >> GG ASSIST SKIP NADE
// ============================================================================
// Description:
// Allows player to use assist points to skip nade level or by a new nade (new cvar gg_assist_skip_nade 2).
// Options:
// 0 = Do not allow players to skip nade level.
// 1 = Allow players to skip nade level.
// 2 = Allow players to buy nade with assist points.
// Default Value: 0

// Allows player to use assist points to skip nade level.
gg_assist_skip_nade 2

// ============================================================================
// >> GG ENABLE RESPAWN
// ============================================================================
// Description:
// Allows player to use assist points to buy respawn.
// Options:
// 0 = Do not allow players to buy respawn.
// 1 = Allow players to buy respawn.
// Default Value: 1

// Allows player to use assist points to buy a respawn.
gg_enable_respawn 0

I think the settings under this text this is default in gg_assist.py in gungame 5.1

// ============================================================================
// >> GG ASSIST ADVERTISEMENT
// ============================================================================
// Description:
// When a player earns assist points, the player will be told privately how
// many assist points were earned, and their assist point balance.
// Options:
// 0 = Do not advertise assist points when earned.
// 1 = Advertise assist points when earned.
// Default Value: 1

// Advertises assist points to the players when earned.
gg_assist_advertise 1

// ============================================================================
// >> GG ASSIST SOUND
// ============================================================================
// Description:
// Sound that plays when 100 points are accumulated.
// Options:
// * Path to sound located in the sound directory
// * 0 for no sound
// Default Value: "buttons/weapon_confirm.wav"

// Sound that plays when 100 points are accumulated.
gg_assist_sound "buttons/weapon_confirm.wav"

Another thing in the gungame 5.1 gg_assist.py version we have the possibility to ses how much assists point we have before we use point we just write !assist and when we want to use points we just write !redeem 1 time for use 100 points and write !redeem again to use 200 points and so on, some time players not want to !redeem all there points at the same time, in your version we use all the points when we write assists at the same time ?
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: GG-Assists v1.0.1

Postby satoon101 » Thu Aug 09, 2018 10:37 pm

Hmm, yeah, I could certainly work on an "Assists Perks" plugin. Give me some time and I'll see if I have some time to get it to a point where it is testable. Thanks for the suggestion!!

As for the sound and advert suggestions, those both sound like good ideas. I actually need to create an advert plugin for all of the GG commands.

As far as the last question, I will have to consider that and see what I can come up with. I don't like the way this version currently works, but I haven't figured out how I want to change it.

Again, thank you for all the suggestions!
Image
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: GG-Assists v1.0.1

Postby satoon101 » Sat Aug 11, 2018 2:28 pm

[+35]Jumpman wrote:in your version we use all the points when we write assists at the same time ?

I hadn't looked at the code in a while, but no, you only level up once when using the assists command. I do not have a command for simply showing you your points without attempting to redeem them. If you attempt to redeem and do not have enough, it will tell you how many you have.

The way this version increases in cost, currently, is based off of the player's level. I am going to also add a variable to instead increase using the number of times a player has used the assists command to successfully redeem points.
Image

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 14 guests