bonushealth/Weapons

Tutorials for Call of Duty mapping

Moderator: Core Staff

Post Reply
mox123456
CJ Wannabe
CJ Wannabe
Posts: 23
Joined: October 21st, 2007, 7:58 am
Gamertag: mox123456
Location: Saint Louis, MO
Contact:

bonushealth/Weapons

Post by mox123456 » September 1st, 2008, 1:34 am

These may help in some jump maps if you want the player to have rewards when they complete the map.


Use a trigger_use (press use on the trigger) or trigger_multiple (walk into the trigger) for bonushealth() and weapon1()

Code: Select all

bonushealth()
{
trig = getent ("bonushealth","targetname");

while (1)
{
	
trig waittill ("trigger",player);
player iprintlnbold ("^3Bonus: HP + 500,000");
player.health = (player.health + 500000);    // this can be changed to whatever health you want :)
}
}



  //UO ONLY for this command     // you also need to have a weapon folder in your pk3 with the weapon that you picked. So mine would be \weapons\mp colt_mp


weapon1()                               
{
trig = getent ("weapon1","targetname");

while (1)
{
trig waittill ("trigger",player);
player setWeaponSlotWeapon("primaryb","colt_mp");   // this can be any of the weapons, just have _mp at the end of it
player setWeaponSlotAmmo("primaryb","999");
player setWeaponSlotClipAmmo("primaryb","999");
player iprintlnbold ("^3You received a Colt");     // this can be anything
}
}


message()
{
trig = getent ("message","targetname");   // trigger_mutiple or trigger_use

while (1)
{
trig waittill ("trigger",player);
if(isdefined(player.down)) return;
player iprintlnbold ("Welcome to my map! Watch out for the big monsters");     // be anything you want 
player.down = "doneit";
}
}
i wove pedsdude and nightmare :D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest