Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
23 posts, 7 people · 6,918 views Thread Rating: ★★★★★
closedReinforcements
Started by Kiel |17.SS| on 02-18-2007, 07:03 AM
K Kiel |17.SS|
started this thread
Posts: 163
Threads: 12
Joined: Jul 2006
02-18-2007, 07:03 AM #1

Can someone make a plugin where you could change the time or turn off reinforcements? Thanks.

K Kiel |17.SS|
started this thread
Posts: 163
Threads: 12
Joined: Jul 2006
02-19-2007, 09:11 PM #2

Can anyone help me out?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
02-19-2007, 09:57 PM #3

i would suggest to have something like this added to Wilson's DoD MapSettings plugin (as the respawn times are also found in the dod_detect or whatever entity)

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
03-06-2007, 03:07 PM #4

is it even possible? ive been looking at a few pugins made for ALL MODS to change the reinforcement time and i had Hawk and SweatyBanana (my ex moderator) from amxmodx community try and come up with one and none could. And bail will never re-code his csdm to dod ive talked about it to him and was willling to pay him but he just said itd take months

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
03-06-2007, 08:22 PM #5

well ive changed my respawn times on some maps by editing the keys in that entity thru bspedit, so im sure amxx could do it too

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
03-06-2007, 11:26 PM #6

how did u manage that if you don't mind sharing? Id love to be able to respawn ppl as soon as 1 sec sort of like death match.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
03-07-2007, 12:59 AM #7

well in the info_doddetect entity.. theres two keys:n

  • n
  • detect_allies_respawnfactorn
  • detect_axis_respawnfactor
the default for these is 1.0.. which is what 15seconds? (i think thats the standard respawn time)nso having 1.0=15 makes it hard to easily get the number you wanted.. nnim pretty sure smaller numbers = less delay time.. nso in theory i would think that doing 0.5 would make ppl wait half as long..nni only changed some of mine to 0.7 or 0.8 and im almost positive that it made the respawn delay shorter lol.. its been a while since i did it.. and i dont really pay attention to it now

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
03-07-2007, 01:32 AM #8

works just beautifully thanks man. rnrnFYI: for those who are gonna try to or do this...u cant go lower than 0.3 and the only lowest number of sec a player respawn can go to is 3. if u put 0.2 or even 0.1 wont work still will give 3 secs. Dunno why but thats how it is. Same for 0.0

K Kiel |17.SS|
started this thread
Posts: 163
Threads: 12
Joined: Jul 2006
03-12-2007, 10:04 PM #9

Where is the info_doddetect entity? I would like to try this out too.

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
03-13-2007, 12:00 AM #10

inside the map. dl a program called BSPEdit then open dod_avalanche.bsp (the map itself) and search for that entity and change the numbers, save, and upload and rewrite current one

K Kiel |17.SS|
started this thread
Posts: 163
Threads: 12
Joined: Jul 2006
03-14-2007, 12:34 AM #11

So you'd have to do it for all the maps?

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
03-14-2007, 12:46 AM #12

yea unless one of these nice coders can write a plugin like that and i think it might have been done already not sure too lazy to search

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
04-03-2007, 11:28 PM #13

This works if you want to set all maps and both teams to the fastest possible respawn. But like SoCal says, the fastest it gets is 3 seconds. I'm not sure why either. I've written another version of this plugin that allows you to set the respawn factor on a 'per-map' / 'per-team' basis and adds an admin command. If you're interested in that one, let me know.rnrnPlease note that this requires the 'fakemeta_util' include.rnrn

// DOD Fast Respawn - AmxmodX plugin. Written by Vet(3TT3V) - www.rip2001.comrnrn#include <amxmodx>rn#include <fakemeta>rn#include <fakemeta_util>rnrn#define DOD_CLASSNAME "info_doddetect"rn#define ALLIES_KEY "detect_allies_respawnfactor"rn#define AXIS_KEY "detect_axis_respawnfactor"rn#define RS_FACTOR "0.1"rnrnpublic plugin_init() {rn	register_plugin("DOD Fast Respawn", "0.91", "Vet(3TT3V) - www.rip2001.com")rn	new entrn	new keyname[32] = ALLIES_KEYrn	new keyvalue[5] = RS_FACTORrnrn	ent = fm_find_ent_by_class(0, DOD_CLASSNAME)rn	if (!ent) {rn		ent = fm_create_entity(DOD_CLASSNAME)rn		fm_DispatchSpawn(ent)rn	}rnrn	fm_set_kvd(ent, keyname, keyvalue)rn	keyname = AXIS_KEYrn	fm_set_kvd(ent, keyname, keyvalue)rnrn	log_message("[AMXX] Fast Respawn enabled")rn	return PLUGIN_HANDLEDrn}
J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
04-09-2007, 04:51 AM #14
inside the map. dl a program called BSPEdit then open dod_avalanche.bsp (the map itself) and search for that entity and change the numbers, save, and upload and rewrite current one
rnrnWhile i did find this in many stock and some custom maps , dod_avalanche doesn't have that text, i have searched for it.rnIs there any other way to do this. because this rocks. I have set all of my maps 160 of them to 0.5 and theres almost no waiting at all.rnrnall of these custom edits i have been doing is really making my server popular, Were are now ranked 9th in the USA.

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
04-09-2007, 08:37 AM #15

You can try copying the ones from other maps and put it into avalanche... Dunno if that will work though...

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-09-2007, 11:35 AM #16

if the keys are in the entity.. just add them..

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
04-09-2007, 04:15 PM #17
if the keys are in the entity.. just add them..
rnrnThats just it, that entity is not there to adjust the key values.rnNot sure why the entity isn't there.

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
04-09-2007, 04:19 PM #18
This works if you want to set all maps and both teams to the fastest possible respawn. But like SoCal says, the fastest it gets is 3 seconds. I'm not sure why either. I've written another version of this plugin that allows you to set the respawn factor on a 'per-map' / 'per-team' basis and adds an admin command. If you're interested in that one, let me know.rnrnPlease note that this requires the 'fakemeta_util' include.rnrn
// DOD Fast Respawn - AmxmodX plugin. Written by Vet(3TT3V) - www.rip2001.comrnrn#include <amxmodx>rn#include <fakemeta>rn#include <fakemeta_util>rnrn#define DOD_CLASSNAME "info_doddetect"rn#define ALLIES_KEY "detect_allies_respawnfactor"rn#define AXIS_KEY "detect_axis_respawnfactor"rn#define RS_FACTOR "0.1"rnrnpublic plugin_init() {rn	register_plugin("DOD Fast Respawn", "0.91", "Vet(3TT3V) - www.rip2001.com")rn	new entrn	new keyname[32] = ALLIES_KEYrn	new keyvalue[5] = RS_FACTORrnrn	ent = fm_find_ent_by_class(0, DOD_CLASSNAME)rn	if (!ent) {rn		ent = fm_create_entity(DOD_CLASSNAME)rn		fm_DispatchSpawn(ent)rn	}rnrn	fm_set_kvd(ent, keyname, keyvalue)rn	keyname = AXIS_KEYrn	fm_set_kvd(ent, keyname, keyvalue)rnrn	log_message("[AMXX] Fast Respawn enabled")rn	return PLUGIN_HANDLEDrn}
rnrnWere would i find the "fakemeta_util" include ?

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
04-09-2007, 09:22 PM #19
diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-09-2007, 11:12 PM #20
Thats just it, that entity is not there to adjust the key values.nNot sure why the entity isn't there.
nnnwell.. adding the entity should work fine too..

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
04-10-2007, 01:15 AM #21
Thats just it, that entity is not there to adjust the key values.rnNot sure why the entity isn't there.
rnThe entity isn't REQUIRED. The map will simply use default values if its omitted. Just add the entity and the desired key/values to your ripent file if you decide to go that route. Check THIS SITE for more info on default values.

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
04-10-2007, 02:22 AM #22
The entity isn't REQUIRED. The map will simply use default values if its omitted. Just add the entity and the desired key/values to your ripent file if you decide to go that route. Check THIS SITE for more info on default values.
rnrnfunny i was just on that page last night, but what i didn't know is what you have said here, that i can just add that entity to avalanche.rnSo if i just add the following it should work.rn{ rn"origin" "16 224 384" rn"detect_wind_velocity_y" "0.0" rn"detect_wind_velocity_x" "0.0" rn"detect_axis_respawnfactor" "0.5" rn"detect_allies_respawnfactor" "0.5" rn"detect_points_timerexpired" "5" rn"detect_points_allieseliminated" "5" rn"detect_points_axiseliminated" "5" rn"detect_axis_infinite" "1" rn"detect_allies_infinite" "1" rn"classname" "info_doddetect" rn}rnrnor do i just omit everything that i dont want to change and add the things i do.rncan i just keep the origin the way it is or do i have to find the actual x,y,z for it.rnrnI thank you for the clarification Vet. :)rnrnrn[EDIT] Ok here is what i added and it seems to work very well so far.rnI shortend the axis respawn time to 0.8 and the allies to 0.3 because i feel the axis have an advantage on ava.rnrn{ rn"origin" "82.11938 305.6021 357.5038" rn"detect_axis_respawnfactor" "0.8" rn"detect_allies_respawnfactor" "0.3" rn"classname" "info_doddetect" rn}

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
04-10-2007, 11:52 AM #23

Right, just add the keys you want to change. The others will default. The 'origin' values don't matter much since the entity will be invisible. So they don't need to be THAT exact. Just pick a point up in the air somewhere and round it off.

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