Forum

> > CS2D > Scripts > CTF Deathdrop script
Forums overviewCS2D overview Scripts overviewLog in to reply

English CTF Deathdrop script

6 replies
To the start Previous 1 Next To the start

old CTF Deathdrop script

Alistaire
User Off Offline

Quote
Well, I'm working on a modified classes script, and I'm stuck on this:

When I play a CTF map (for which the script is ment actually), the anti-deathdrop part of the script deletes the flag out of the game on flagholders' death.
I tought I could delete the death-drop part, but that makes it worse. That way there aren't any class differences

So it's just about THIS part

1
2
3
4
5
6
7
8
9
10
11
12
13
-----------------------
-- NO DEAD DROPPING --
-----------------------
addhook("die","sample.classes.die")
	function sample.classes.die()
		if (type==55) then
			return 0
		elseif (type>=70 and type<=71) then
			return 0
		else
			return 1
     		end
end

old Re: CTF Deathdrop script

Yates
Reviewer Off Offline

Quote
Don't use a script then.

rcon mp_deathdrop 4

I think it was that anyway. Give me 2sec, and I'll confirm it or not.

Edit: Yeah, it's that.

old Re: CTF Deathdrop script

Alistaire
User Off Offline

Quote
For some reason the game doesn't drop anything anymore when I even delete the deathdrop script. I guess there must be another problem.

old Re: CTF Deathdrop script

Yates
Reviewer Off Offline

Quote
Just use rcon to see if it's something to do with your game settings.

rcon mp_deathdrop 0

old Re: CTF Deathdrop script

Alistaire
User Off Offline

Quote
I know what the problem was. Bots couldn't drop the flag because of no-drop script..

Lets try it again with deathdrop script

EDIT:

Wow it actually worked
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview