Hey!
My Gun Game mod looks like this:
Code:
[...]
initGuns()
{
self.inverse = false; //Inverted gungame?
self.upgscore = 150; //Score necessary for upgrade. Leave at 100 for 2 kill upgrade. Do 50 for 1 kill, 150 for 3 kill.
self.finalkills = 1; //Kills to win after getting final weapon
self.gunList = [];
// Gun Name, Laser Sight, Akimbo
self.gunList[0] = createGun("throwingknife_mp", 9, false, false);
self.gunList[1] = createGun("usp_fmj_silencer_mp", 9, false, false);
self.gunList[2] = createGun("pp2000_mp", 9, false, false);
self.gunList[3] = createGun("spas12_reflex_xmags_mp", 9, true, false);
self.gunList[4] = createGun("mp5k_fmj_reflex_mp", 9, false, false);
self.gunList[5] = createGun("m4_heartbeat_reflex_mp", 9, false, false);
self.gunList[6] = createGun("sa80_grip_reflex_mp", 9, false, false);
self.gunList[7] = createGun("barrett_fmj_thermal_mp", 9, true, false);
self.gunList[8] = createGun("at4_mp", 9, true, false);
self.gunList[9] = createGun("killstreak_predator_missile_mp", 9, false, false);
self.gunList[10] = createGun("claymore_mp", 9, false, false);
self.gunList[11] = createGun("glock_akimbo_fmj_mp", 9, false, true);
[...]
}
createGun(gunName, camo, laserSight, akimbo)
{
gun = spawnstruct();
gun.name = gunName;
gun.camo = camo;
gun.laser = laserSight;
gun.akimbo = akimbo;
return gun;
}
[...]
the red thing doesnt work.
You should get predator Missiles until you get the number of kills than it should go on with number 10.
I looked into the code and i only know a little bit of c# xD
so can anyone help me plz
thought of sth like this:
Code:
self.gunList[9] = createKillstreak("killstreak_predator_missile_mp");
[...]
createKillstreak(killstreakName)
{
self maps\mp\killstreaks\_killstreaks::giveKillstreak( killstreakName, false )
}
haha ok I have no idea what to code at all ^^...
I want you to get the named killstreak and u always get a new one after you have used it until u have the kills for the new weapon.