Forum

> > CS2D > Scripts > Defusion map without bomb!?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Defusion map without bomb!?

10 replies
To the start Previous 1 Next To the start

old Defusion map without bomb!?

Happy Camper
User Off Offline

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

old Re: Defusion map without bomb!?

Jynxxx
User Off Offline

Quote
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

old Re: Defusion map without bomb!?

Happy Camper
User Off Offline

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

old Re: Defusion map without bomb!?

krabob
User Off Offline

Quote
user Happy Camper has written
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.

old Re: Defusion map without bomb!?

Yates
Reviewer Off Offline

Quote
user Livia has written
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.

old Re: Defusion map without bomb!?

Happy Camper
User Off Offline

Quote
user Yates has written
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview