TFC - All Teams Are Allies
5 Attachment(s)
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 :D (logged me out when iu was trying to edit:() Quote:
example allteamally.cfg (addons/amxmodx/configs/) Quote:
|
Re: TFC - All Teams Are Allies
you only have a sma and a amxx file . Dont put them in a zip folder. Only extra files like sounds or models go into a zip file . The moderators wont even want to look at this becasue they have to downlaod and unzip the whole thing. Just post the sma file it will auto compile. :up:
|
Re: TFC - All Teams Are Allies
Thanks, new to the forums, never knew they could be auto compiled! I was wondering where the 'Get Plugin' came from :p I (I had a readme.txt so i thought i would put it in the zip ;)) Thanks again.
|
Re: TFC - All Teams Are Allies
why is there a GPL attached?
|
Re: TFC - All Teams Are Allies
The GPL is posted on the AMXX site and thus anything posted unto the AMXX site has the GPL with it. The GPL file that you uploaded will confuse users in thinking that it is a multi-lingual text file required for the plugin.
|
Re: TFC - All Teams Are Allies
Good job on your first plugin.
|
Re: TFC - All Teams Are Allies
Quote:
You could improve it by removing the need for the engine module D: |
Re: TFC - All Teams Are Allies
Thanks :D Yeah I removed the gpl text link for confusion, thought it was required. I don't know if it will work without the engine too because it requires hooking pfn_spawn (engine function) and also requires fakemeta (keyvalue) also needs DispatchKeyValue, so I don't know if there is a work around for it!
|
Re: TFC - All Teams Are Allies
You can do it just in fakemeta look up the keyvalue stock in VEN's Fakemeta Utils inc in the tutorials section.
But info_tfdetect can actually be changed midgame, it doesn't have to be on precache. A better way would be to just find the entity on init and then make the changes to the keyvalues. Also my knowledge of bitfields isnt great so i doubt it makes any difference but when mapping i've always been specific with it like: team1_allies 14, team2_allies 13, team3_allies 11, team4_allies 7. Try this... Can't compile/test it myself D: Had to quickly put it together in word because they have sodding restricted notepad on this pc Code:
#include <amxmodx> |
Re: TFC - All Teams Are Allies
Hmm, although doesnt DispatchKeyValue have to be called before the entity is spawned?
I'm not sure if entities can be search for before they are spawned. I don't know if plugin_init is called before or after all entities are spawned either!. I'll have to try it out and tell you if it works or not edit: oh well! it seems to work! The bots still get confused though (no big deal though!!) it works without having to call dispatchSpawn() Either! would you mind if I added the changes [with appropriate credit of course]? |
All times are GMT -4. The time now is 21:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.