edit update --Version 1.2 (now in zip file with a cfg file too )
Hi.
haven't seen this plugin made before here, but may have been attempted (and never submitted)
reason:
A plugin that makes all teams allies in TFC. This is useful in co-operative maps, skills maps, especially poorly defined maps that have not set up team allies properly.
What it does:
Makes all TFC teams allies n all maps when it runs. I've tested the plugin with concmap_csi (for example as there are 4 teams and it's a skills map), no players can hurt others this way and start DM matches at jump 1 or anywhere.
Usage:
When the plugin runs with amxmodx it basically does its business. Maybe an option to enable/disable the plugin on certain maps would be a new feature in the future someone could add
Credits:
I helped myself to a few searches on this forum only, I had to do several searches and combined code from several other posts, I forgot who most where though
Thanks to all posts that helped, one post was by Johnny got his gun
so thx.
Source:
.sma code is attached, I hook pfn_spawn, FM_keyvalue and dispatchkeyvalue to do this
notes
Notice bots get confused with this on, so leave bots out of the game with this plugin!!
still to do
fakemeta + engine stuff still together, still need to find a way of using just one.
edit:updated post thx
(logged me out when iu was trying to edit
)
Quote:
Version 1.2
--------------------------------
Version
-------------------------------
1.2
added log_amx to log plugin status
show mapname in plugin status message
fixed loop if config file not found
shows error message if config file is not found
removed pfn_spawn function
uses watch's method of dispatchkeyvalue in plugin_init
1.1
Added config file for enabling/disabling on maps
the config file contains a map name each line for the plugin to be enabled on
1.0
first release
-----------------------------
Description
-----------------------------
TFC AMXX Plugin
Makes all teams allies
For co-operative servers/maps
------------------------------
install
----------------------------
put .amxx file into addons/amxmodx/plugins/
put .cfg file into addons/amxmodx/config
edit addons/amxmodx/config/plugins.ini
add allteamally.amxx
edit allteamally.cfg to add map names you want the plugin to be enabled on with
-------------------------
Running
--------------------------
The plugin runs automatically making ALL teams allies, it will run
only on maps that are listed in allteamally.cfg
--------------------------------
Author
---------------------------------
chewweh/[Rcbot]cheeseh
cheeseh(at)bots-united(dot)com
--------------------
Credits
--------------------
-Johnny got his gun (amx mod post on keyvalue)
-Watch (amxmodx forums)
Can't remember all, those that posted on forums.alliedmods.net and posted relevant stuff for me to search!!!
PS
This is my first plugin for AMXmodX but its not badly written, I know how to code hehe. I would have done it for metamod instead but the porting issues made me chose amxx.
|
example allteamally.cfg (addons/amxmodx/configs/)
Quote:
concmap_csi
conc_speed
concmap_mm
|
Plugin Attached + Some Screens of plugin in use