Axis have only a knife
by thomaskirk · 2013-11-21 · 6 replies · 6277 views · 40 downloads
From the first post
rn
rnI have a zombie server but would also like to be able to play the stock maps the way that DOD is supposed to be played per map change.
rnBoth Allies and Axis bots have only a knife which is forced through the bot.cfg
rn
rndod_customsupply.amxx allows me to give and take away weapons to either team, except the axis still pick up dropped weapons. Zombies are deadly with a gun, not good at all.
rn
rnremove_drop.amxx stops everbody from picking up a gun, not good for allies fighting zombies.
rn
rnIs there a way and if there is can somebody please give me some code, or make a plugin so I can control what weapons I give the axis and so they do not pick up dropped weapons, but keep everything normal for the allies?
rn
rnI would be truly grateful, this plugin would be like gold to me, and the few regulars that still like to play this great game. Thanks Kirk out!!
Archived builds from the server loose
These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.
| dod_nadenblade_127.sma | v1.0 | 6 KB | Download Compile |
Added later in the thread
| dod_bladez_only_by_vote.sma | Plugin Source | 4 KB | 11 dl | Download Compile |
| dod_teambladez.sma | Plugin Source | 4 KB | 13 dl | Download Compile |
| nadenblade.sma | Plugin Source | 6 KB | 16 dl | Download Compile |
The thread
All 7 posts from 2 people on Axis have only a knife, kept as they were written.
Threads: 4
Joined: Jan 2008
Ive been researching this for a long time but still struggling to get the best control over my sturmbots. rnrnI have a zombie server but would also like to be able to play the stock maps the way that DOD is supposed to be played per map change.rnBoth Allies and Axis bots have only a knife which is forced through the bot.cfgrnrndod_customsupply.amxx allows me to give and take away weapons to either team, except the axis still pick up dropped weapons. Zombies are deadly with a gun, not good at all.rnrnremove_drop.amxx stops everbody from picking up a gun, not good for allies fighting zombies.rnrnIs there a way and if there is can somebody please give me some code, or make a plugin so I can control what weapons I give the axis and so they do not pick up dropped weapons, but keep everything normal for the allies? rnrnI would be truly grateful, this plugin would be like gold to me, and the few regulars that still like to play this great game. Thanks Kirk out!!
Threads: 49
Joined: Jan 2006
Threads: 4
Joined: Jan 2008
Thank you Sparky I remeber this plugin, I will give it a look.
Threads: 4
Joined: Jan 2008
Here is my plugin, so far it works great for the axis but I want to turn it off for the allies. Please show me how to do this.rnrn#include <amxmodx>rn#include <fakemeta>rn#include <hamsandwich>rn#include <fun>rn#include <dodfun>rnrn#define PLUGIN "DOD Zombies"rn#define VERSION "1.0"rn#define AUTHOR "Jimkirk"rn#define AXIS 2rn#define ATEAM 1rn#define zombie_health 300rnrnnew zombiernrnpublic plugin_init( ) {rn // CVARSrn register_cvar("zombie_allies", "0")rn register_cvar("zombie_axis", "1")rn register_plugin(PLUGIN, VERSION, AUTHOR) rn RegisterHam(Ham_Spawn, "player", "hamSpawn", 1)rn register_forward(FM_Touch,"fw_Touch")rn zombie = register_cvar("dod_zombie", "1")rn rn register_plugin( "dod_zombies2", "1.0", "xPaw" );rn rn RegisterHam( Ham_Spawn, "weaponbox", "FwdSpawnWeaponbox", 1 );rn}rnrn// Called upon player spawningrnpublic reset_hud(id) {rn new myTeam = get_user_team(id)rn if(!get_cvar_num("dod_zombie"))rn return PLUGIN_CONTINUErn if( (myTeam == ALLIES && !get_cvar_num("zombie_allies")) || (myTeam == AXIS && !get_cvar_num("zombie_axis")) )rn return PLUGIN_CONTINUErn rn set_task(0.1,"set_supply",id)rn rn return PLUGIN_CONTINUErn}rnrnpublic FwdSpawnWeaponbox( iEntity ) {rn set_pev( iEntity, pev_flags, FL_KILLME );rn dllfunc( DLLFunc_Think, iEntity );rn rn return HAM_IGNORED;rn} rnrnpublic hamSpawn(id)rn{ rn if (get_pcvar_num(zombie)==1 && is_user_connected(id))rn { rn if (get_user_team(id) == AXIS)rn {rn strip_user_weapons(id)rn give_item(id,"weapon_spade")rn set_user_health(id,zombie_health)rn }rn rn }rn rn else if (get_pcvar_num(zombie)==0 && is_user_connected(id))rn {rn rn }rn}
Threads: 49
Joined: Jan 2006
ATEAM or ALLIESrnrn#define ATEAM 1rnrnif( (myTeam == ALLIES && !get_cvar_num("zombie_allies")) || (myTeam == AXIS && !get_cvar_num("zombie_axis")) )
Threads: 49
Joined: Jan 2006
its not mine but might be hlpfull.
Threads: 4
Joined: Jan 2008
Thank you so much Sparky! :) dod_teamblaze did the trick :)

