Forum

> > CS2D > Scripts > Damage Factor for each map
Forums overviewCS2D overview Scripts overviewLog in to reply

English Damage Factor for each map

5 replies
To the start Previous 1 Next To the start

old Damage Factor for each map

MethodMan
User Off Offline

Quote
Where is the error? Can anyone fix?

1
2
3
4
addhook("startround","damagefactor")
function damagefactor(id)
	parse("mp_damagefactor 999")
end

old Re: Damage Factor for each map

DC
Admin Off Offline

Quote
CS2D supports map specific settings out of the box! This means you don't have to write a single line of Lua to do this.

Just open the file sys/mapcycle.cfg and add a line which looks like:
1
mapname { mp_damagefactor 999 }

Example:
1
2
de_dust { mp_damagefactor X }
de_aztec { mp_damagefactor 123 }

The commands associated with maps in mapcycle.cfg are ALWAYS executed when a map is loaded. It does not matter when/how it is loaded. So you don't have to use the map cycle feature at all to make this work.

old ok

Ajmin
User Off Offline

Quote
ok add that lua in the top of server.lua.
make sure that the dofile of hc admin script is in bottom.
(it should be in down of ur script)
it works
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview