Forum

> > CS2D > Scripts > Silent death
Forums overviewCS2D overview Scripts overviewLog in to reply

English Silent death

6 replies
To the start Previous 1 Next To the start

old Silent death

aleksix
User Off Offline

Quote
I'm trying to make something like a hide-seek-kill script.
The problem is that I don't want the kills of victims to be announced.
Any way to do so? I don't want to make a separate script for it...

old Re: Silent death

Pagyra
User Off Offline

Quote
mp_killinfo 0 (1 - show, 0 - hide)
mp_hud 63
(1+2+4+8+16+32 = 63
1 - Health
2 - Armor
4 - Time
8 - Ammo
16 - Money
32 - Icons (like buyzone, rescuezone etc)
64 - Kill Messages)

old Re: Silent death

aleksix
User Off Offline

Quote
Ok, thank you. Looks like I'll have to re-write the built-in death message system. Again.

old Re: Silent death

omg
User Off Offline

Quote
wait, theres workarounds for this kind of thing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
limbo={}

addhook("hit","genius")
function genius(victim,hitman,weapon,hp)
	if player(victim,"health")-hp<1 then
		table.insert(limbo,victim)
		parse("setpos "..victim.." -1 -1")
		return 1
	end
end

addhook("say","alsogenius")
function alsogenius(id)
	for _,victim in pairs(limbo) do
		if victim==id then
			msg2(id,string.char(169).."255000000You got dead!@C")
			return 1
		end
	end
end

addhook("startround","duh_limbo")
function duh_limbo()
	limbo={}
end
the idea doesnt only have to be about making the death silent...thats how non-engineers would solve problems

plus, this makes it so that checking scoreboard doesnt give away deaths

old Re: Silent death

aleksix
User Off Offline

Quote
Well, my problem is a bit different. Cmds like "maket" kill the player and announces his suicide. So I'll have to make my own "death messages" system. The hardest part is about problems with other scripts...

Oh, and I needed your script too!

old Re: Silent death

Yates
Reviewer Off Offline

Quote
What mp_hud are you using? Just change the hud so the kill messages are not displayed then change it back after he's dead.

Or just completely disable it and make your own seeing as you can do some random shit with multicolours now. But don't go all rainbow.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview