Hi!
Updated one old plugin (
https://forums.alliedmods.net/showthread.php?t=282110) with some fixes:
About (old version):
Allows the Homewrecker, Maul and Neon Annihilator to repair, upgrade and heal friendly buildings.
Pyrogineers will start the round with 200 metal and can gain metal from ammo packs and dispensers just like an Engineer can, they can repair buildings and can grant upgrade metal to them too.
New:
1) Now pyromans can upgrade sentries, dispensers and teleporters + give bullets to sentries without engineer's help.
2) Now healing buldings costs metal.
2) Now it is 100% new syntax.
3) Added multitasking.
4) Added ConVar pyrogineer_ammoonhit - how much ammo a building recieves per hit. Default: 40.
5) Deleted old code garbage + some optimisation.
6) Changed ConVar pyrogineer_healthonhit - how much health to give a building per hit. Default: 50.
ConVars:
1) sm_pyrogineer_healthonhit: how much health to give a building per hit. Default: 50.
2) sm_pyrogineer_upgradeonhit: how much upgrade to give a building per hit. Default: 25.
3) sm_pyrogineer_metalmult: how much to multiply the Pyrogineers metal pool, the default pool is 100. Default: 2.0.
4) sm_pyrogineer_ammoonhit: how much ammo a building recieves per hit. Default: 40.
5) sm_pyrogineer_noupgrade: if <> 0, deny pyromans to upgrade buldings. Default: 0.
6) sm_pyrogineer_nohealing: if <> 0, deny pyromans to heal buldings. Default: 0.
7) sm_pyrogineer_noammo: if <> 0, deny pyromans to give ammo to sentries. Default: 0.
Problems (will be fixed in the future):
1) Still pyromans cannot increase building construction speed.
Plugin goes to addons/sourcemod/plugins.
Also, if your server is running Pyrogineer plugin, you must remove it to make this plugin works correctly.
Here you can see how it works:
https://www.youtube.com/watch?v=l5_qwTc7ZUQ
Code:
Change logs:
[11.08.2020] (v1.3.0)
- Fixed rare errors with teleporters, when plugin could blame into console, added garbage collector.
- Added ConVars sm_pyrogineer_noupgrade, sm_pyrogineer_nohealing, sm_pyrogineer_noammo.
[28.07.2020] (v1.2.0)
- Deleted some code garbage.
- Now code uses new syntax everywhere.
- Now teleporters can be both upgrated.
- Added bug catchers for teleport upgrades.
- Now plugin is compatible with change buildings upgrade metal required plugins, also for the Eureka Effect.
- Added gurbage cleaners for the end of the round.
- Advanced healing buildings cost formula.
- Changed ConVar pyrogineer_healthonhit.
[02.07.2020] (v1.1.0)
- Release.
---
See my another plugins!
Dispenser Music Choise - https://forums.alliedmods.net/showthread.php?t=325577.