Forum

> > CS2D > Scripts > Defusion map without bomb!?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Defusion map without bomb!?

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Defusion map without bomb!?

Happy Camper
User Off Offline

Zitieren
If I remember correctly, LaG and REWARDS fun servers used standard game mode and the de_dust map, but without a bomb. Well, the bomb was visible at the back of one of the terrorists, but it wasn't in the inventory and it didn't get dropped on the floor when the terrorist died.

Does anyone know how that could be done? I haven't managed with the strip command or the spawn or die hooks.

alt Re: Defusion map without bomb!?

Jynxxx
User Off Offline

Zitieren
I think you need to use the cs2d lua hook bombplant and cs2d lua hook drop

1
2
3
4
5
6
7
8
9
10
11
addhook("bombplant","_plant")
function _plant(id,x,y)
	return 1
end

addhook("drop","_drop")
function _drop(id,iid,type,ain,a,mode,x,y)
	if iid == 55 then
		return 1
	end
end

alt Re: Defusion map without bomb!?

Happy Camper
User Off Offline

Zitieren
Thanks for the reply, but that doesn't quite do it. I don't want it in my inventory and I don't want it to show up on the ground when I die. The drop hook won't have any effect since it's not possible to drop a bomb intentionally. The die hook also ignores any attempt to not drop the bomb. So far, I have used the select hook to make it impossible to select the bomb, but it's still in the inventory.

alt Re: Defusion map without bomb!?

krabob
User Off Offline

Zitieren
user Happy Camper hat geschrieben
I don't want it [bomb] to show up on the ground when I die.


1
2
3
4
5
6
7
8
addhook("drop","_drop")
function _drop(id,iid,type,ain,a,mode,x,y)
	if player(id,"health")==0 then
		if iid == 55 then
			return 1
		end
	end
end

Here you go, sir. That should work.

alt Re: Defusion map without bomb!?

Yates
Reviewer Off Offline

Zitieren
user Livia hat geschrieben
I would strip the bomb and draw its image on a player.

Same here. In fact even the select solution would be fine, you would not be able to drop or use.

I don't see how they could have removed it from items yet still have the player holding it on his back. It must be an image or bug.

alt Re: Defusion map without bomb!?

Happy Camper
User Off Offline

Zitieren
user Yates hat geschrieben
I don't see how they could have removed it from items yet still have the player holding it on his back. It must be an image or bug.

It might be my memory that deceives me. It has happened before.

Trying to strip it results in an error, so that's not possible, unfortunately.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht