Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Chat › Grenade Load Out
8 posts, 3 people · 4,366 views Thread Rating: ★★★★★
closedGrenade Load Out
Started by Ba5ic on 01-24-2009, 02:28 PM
Ba5ic
started this thread
Posts: 181
Threads: 26
Joined: Nov 2005
01-24-2009, 02:28 PM #1

Hi ChapsrnrnA little guidance please, As you know when you spawn and depending on class, you get either 1 or 2 grenades.rnrnWhere and how do i increase this to say 3 or 4?.rnrnThanks in advance.

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
01-24-2009, 02:41 PM #2
Ba5ic
started this thread
Posts: 181
Threads: 26
Joined: Nov 2005
01-24-2009, 06:09 PM #3

Thanks alot!

Ba5ic
started this thread
Posts: 181
Threads: 26
Joined: Nov 2005
01-31-2009, 05:05 AM #4

OK, I've been using Wislon's custom load out plugin, in all fairness he does say that there are glitches if you try to use it on a linux box, i.e.:rnrnMP40 = only 1 cliprnstg44 = only 3 clips etc etc....rnrnI not so bothered about extra clips for various classes or even extra nades at point own / respawn.rnrnI run the drop nades plugin and would like all players to be able to pick up, upto 4 nades of each, axis & allies.rnrnIs there a way of altering this by hard code rather than rely'ing on a plugin?rnrnJust the ability to pick up and carry more nades?.rnrnThanks In Advance

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
01-31-2009, 11:41 AM #5

cant u by default carry like 5 of each? i can carry 5 stick_grenades, and atleast 2 hand_grenades at the same time...

Ba5ic
started this thread
Posts: 181
Threads: 26
Joined: Nov 2005
01-31-2009, 12:04 PM #6
cant u by default carry like 5 of each? i can carry 5 stick_grenades, and atleast 2 hand_grenades at the same time...
rnrnHow?, default on the drop nades is like only 2 of each?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-31-2009, 12:37 PM #7

i thought its coded in dod that you can only have 3 allied nades.. i could be wrong, its been a while since i stocked up on nades lol

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
01-31-2009, 02:49 PM #8

3 hand grenades and 5 stick grenades is the default max..rnrn

/* Plugin generated by AMXX-Studio */rnrn#include <amxmodx>rn#include <amxmisc>rn#include <hamsandwich>rn#include <dodx>rn#include <fun>rnrnrn#define PLUGIN "Grenade test"rn#define VERSION "1.0"rn#define AUTHOR "Dr.G"rnrnnew p_onrnrnpublic plugin_init()rn{rn register_plugin(PLUGIN, VERSION, AUTHOR)rn register_cvar("dod_give_nades", VERSION, FCVAR_SERVER|FCVAR_SPONLY)rn rn RegisterHam(Ham_Spawn,"player","func_HamSpawn",1)rn rn p_on = register_cvar("dod_give_nades","1") // Turns plugin on/off | 1=on 0=offrn}rnrnpublic func_HamSpawn(id)rn{ rn if(get_pcvar_num(p_on) && is_user_alive(id) && is_user_connected(id) && get_user_team(id)) rn { rn set_task(1.0,"give_hand_grenades",id)rn set_task(4.0,"give_stick_grenades",id)rn //set_task ( Float:time, const function[], id = 0, parameter[]="", len = 0, flags[]="", repeat = 0 ) rn }rn} rnrnpublic give_hand_grenades(id)rn{rn give_item(id, "weapon_handgrenade")rn client_print(id, print_chat, "Ummmm hand grenade...#1")rn give_item(id, "weapon_handgrenade")rn client_print(id, print_chat, "Ummmm hand grenade...#2")rn give_item(id, "weapon_handgrenade")rn client_print(id, print_chat, "Ummmm hand grenade...#3")rn give_item(id, "weapon_handgrenade")rn client_print(id, print_chat, "Ummmm hand grenade...#4")rn give_item(id, "weapon_handgrenade")rn client_print(id, print_chat, "Ummmm hand grenade...#5")rn}rnrnpublic give_stick_grenades(id)rn{rn give_item(id, "weapon_stickgrenade")rn client_print(id, print_chat, "Ummmm stick grenade...#1")rn give_item(id, "weapon_stickgrenade")rn client_print(id, print_chat, "Ummmm stick grenade...#2")rn give_item(id, "weapon_stickgrenade")rn client_print(id, print_chat, "Ummmm stick grenade...#3")rn give_item(id, "weapon_stickgrenade")rn client_print(id, print_chat, "Ummmm stick grenade...#4")rn give_item(id, "weapon_stickgrenade")rn client_print(id, print_chat, "Ummmm stick grenade...#5") rn}
Archive › Old Forum Threads › General › Chat › Grenade Load Out
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC