Raised This Month: $218 Target: $400
 54% 

TFC - All Teams Are Allies


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   GHW_Chronic (70)
chewweh
Junior Member
Join Date: Dec 2006
Old 12-09-2006 , 19:05   TFC - All Teams Are Allies
Reply With Quote #1

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
Attached Thumbnails
Click image for larger version

Name:	concmap_csi0000.jpg
Views:	897
Size:	68.9 KB
ID:	12384   Click image for larger version

Name:	concmap_csi0002.jpg
Views:	780
Size:	86.5 KB
ID:	12386  
Attached Files
File Type: zip allteamally.zip (5.3 KB, 234 views)
File Type: sma Get Plugin or Get Source (allteamally.sma - 1160 views - 3.9 KB)

Last edited by chewweh; 12-21-2006 at 13:57.
chewweh is offline
 


Thread Tools
Display Modes

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 06:21.


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