Created
March 31, 2009 19:16
-
-
Save leegao/88344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Example Port of Stiil's LDM into AMX2D | |
-------------------------------------------------- | |
-- Laser Deathmatch Script by STIIL -- | |
-- 31.03.2009 - www.pavi.890m.com -- | |
-------------------------------------------------- | |
init_mod("ldm") | |
----------------------- | |
-- INITIAL SETUP -- | |
----------------------- | |
-- Weapons | |
ldm.var("wpn",{Laser = Laser,Knife = Knife}) | |
-- Game Settings -- Goes into ldm.cfg in settings dir | |
parse("sv_gamemode 2") -- Teamdeathmatch | |
parse("mp_randomspawn 1") -- Random Spawning | |
parse("mp_infammo 1") -- Infinite Ammo | |
function hook_init_ldm() | |
ldm.loadcfg() | |
end | |
----------------------- | |
-- SPAWN -- | |
----------------------- | |
function hook_spawn_ldm(i) | |
if (player(i,"exists")) then | |
-- Strip All Weapons (0) | |
strip(i, 0) | |
-- Give Knife | |
equip(i, ldm.wpn.Knife) | |
-- Give Laser | |
equip(i, ldm.wpn.Laser) | |
end | |
end | |
----------------------- | |
-- NO BUYING -- | |
----------------------- | |
function hook_buy_ldm() | |
if ldm.buy then | |
return 1 | |
end | |
end | |
----------------------- | |
-- NO COLLECTING -- | |
----------------------- | |
addhook("walkover","stiil.ldm.walkover") | |
function stiil.ldm.walkover(id,iid,type) | |
if (type>=61 and type<=68) then | |
return 0 | |
end | |
return 1 | |
end | |
----------------------- | |
-- NO DROPPING -- | |
----------------------- | |
addhook("drop","stiil.ldm.drop") | |
function stiil.ldm.drop() | |
return 1 | |
end | |
----------------------- | |
-- NO DEAD DROPPING -- | |
----------------------- | |
addhook("die","stiil.ldm.die") | |
function stiil.ldm.die() | |
return 1 | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment