Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

Axis have only a knife

by thomaskirk · 2013-11-21 · 6 replies · 6277 views · 40 downloads

Read the thread (7 posts)

From the first post

Ive been researching this for a long time but still struggling to get the best control over my sturmbots.
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.

T thomaskirk
started this thread
Posts: 15
Threads: 4
Joined: Jan 2008
11-21-2013, 06:22 AM #1

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!!

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
12-08-2013, 03:37 AM #2
T thomaskirk
started this thread
Posts: 15
Threads: 4
Joined: Jan 2008
12-08-2013, 01:50 PM #3

Thank you Sparky I remeber this plugin, I will give it a look.

T thomaskirk
started this thread
Posts: 15
Threads: 4
Joined: Jan 2008
12-15-2013, 05:05 AM #4

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}

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
12-15-2013, 06:20 AM #5

ATEAM or ALLIESrnrn#define ATEAM 1rnrnif( (myTeam == ALLIES && !get_cvar_num("zombie_allies")) || (myTeam == AXIS && !get_cvar_num("zombie_axis")) )

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
12-16-2013, 03:00 AM #6

its not mine but might be hlpfull.

T thomaskirk
started this thread
Posts: 15
Threads: 4
Joined: Jan 2008
12-18-2013, 05:33 AM #7

Thank you so much Sparky! :) dod_teamblaze did the trick :)

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC