Raised This Month: $32 Target: $400
 8% 

RETAKE BOMBSITE ~ By: GoldNux


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-22-2022 , 22:40   RETAKE BOMBSITE ~ By: GoldNux
Reply With Quote #1

RETAKE BOMBSITE ~ By: GoldNux
___________________________

Description:

Spawn close to bombsites and practice retakes together!

Functions:
  • Bomb is planted automatically.
  • Players spawn close to bombsites.
  • Players are given weapons automatically.
  • Player round inventory can be modified with .cfg file.
  • Teams and scores are swapped automatically.
  • Optional smoke grenade clouds can be spawned.

Installation instructions:
  1. Extract retake.zip and place folder in: ..\steamapps\common\Half-Life\cstrike\addons\amxmodx\configs
  2. Place gn_retake.amxx in: ..\steamapps\common\Half-Life\cstrike\addons\amxmodx\plugins
  3. Add the line: gn_retake.amxx to your plugins.ini file: ..\steamapps\common\Half-Life\cstrike\addons\amxmodx\configs

Configuration:
  • To change loadout and player hp/ap you have to edit gearT.cfg and gearCT.cfg.
    Doing this is not hard and there are comments in there to help you out.
  • If you want to change player spawnpoints you can use the command "gn_origin" to get the position you are standing in and put it in the *mapname_*bombsite_spawns.cfg.
  • If you want to change where the bomb is planted or where smoke is spawned you have to edit the .sma file and compile it yourself.
  • If you want to play both A and B bombsites, add the same map twice in your mapcycle.txt.
    The plugin flips the pcVar "gn_bombsite" when you load a new map.

Console Commands:
PHP Code:
"gn_roundlimit" "6" // Number of rounds before switching to the next map in mapcycle.txt
"gn_bombsite" "1" // Self-explanatory, 0 = A, 1 = B
"gn_smoke" "1" // Spawn smoke grenade clouds, 1 = ON
"gn_rngsmoke" "4" // Chance of spawning smoke. 4 = 1/4 rounds avarage.
"gn_origin" // Prints player position to console, useful if you want to change any spawn locations. 
Additional information:

This is my first plugin and I learned a lot making it, it is not perfect and there were many conflicting functions that I spent A LOT of time troubleshooting.
Some of the solutions are not great but it seems to me the plugin does what it was made to do and does it pretty well.

One of the problems I could not solve was the adding of +3 frags whenever the bomb expodes or is defused, if anyone have a good solution for this, please let me know. In the future I would also like to change the plugin so that PODBOTs react to the bomb being auto-planted, at the moment they only rush the site if you plant manually.


Credits:
Thanks to jopmako for making the Map Spawns Editor, it motivated me to build this plugin and I used a function of his to load spawns from a file.
I hope it was ok to do so, if not I have learned enough to write one myself although it would probably end up looking almost identical.
I also want to say thank you to anyone who has been answering my questions and been patient with me learning how to script this.
And a big thank you to my friend Nivo who helped me write clean "code" and helped me host the server I used to test my plugin.
I am very grateful to all of you!

Try it out right now:
PHP Code:
connect 158.174.205.160:27018 
Attached Files
File Type: sma Get Plugin or Get Source (gn_retake.sma - 144 views - 30.7 KB)
File Type: zip retake.zip (12.9 KB, 85 views)

Last edited by GoldNux; 11-22-2022 at 22:50.
GoldNux is offline
Old 11-23-2022, 08:58
kww
This message has been deleted by kww. Reason: no way
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 01-31-2023 , 18:10   Re: RETAKE BOMBSITE ~ By: GoldNux
Reply With Quote #2

Does it work with CZ BOTs or some other kind of BOTs?
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)

SoulWeaver16 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode