Forum

> > CS2D > Scripts > Dispenser Item
Forums overviewCS2D overview Scripts overviewLog in to reply

English Dispenser Item

4 replies
To the start Previous 1 Next To the start

old Dispenser Item

wotaan
User Off Offline

Quote
Hey guys,
I want to change what dispenser spawn, ammo to mine or none.
I searched, but didnt find any commands for this.
I use inf ammo in my server, so ammo is useless.

old Re: Dispenser Item

limonata
User Off Offline

Quote
I think it may be do with lua. I saw in Yates HT server
when dispenser spawn ammo, thesee ammos are disappearing.

old Re: Dispenser Item

mafia_man
User Off Offline

Quote
I didn't test it, but it should remove ammo from map every second.
1
2
3
4
5
6
7
8
9
10
11
12
function ClearMap()
	local _, i;
	local list = item(0, "table");
	
	for _, i in pairs(list) do
		if item(i, "type") == 61 or item(i, "type") == 62 then
			parse("removeitem " .. i);
		end
	end
end

addhook("second", "ClearMap");

old Re: Dispenser Item

DC
Admin Off Offline

Quote
There is no setting to change the ammo spawning of the dispenser so you would have to use a script like user mafia_man just suggested.

I'll change the dispenser behavior for the next version of CS2D. It won't spawn any ammo as soon as cs2d cmd mp_infammo is set to 1!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview