Forum

> > CS2D > Scripts > Silent death
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Silent death

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Silent death

aleksix
User Off Offline

Zitieren
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...

alt Re: Silent death

Pagyra
User Off Offline

Zitieren
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)

alt Re: Silent death

aleksix
User Off Offline

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

alt Re: Silent death

omg
User Off Offline

Zitieren
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

alt Re: Silent death

aleksix
User Off Offline

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

alt Re: Silent death

Yates
Reviewer Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht