02-13-2011, 15:10
Hi,
i want to code a "Hide and Seek" Mod for Black Ops. But there are some Problems
(At first, Im a Modding Noob )
What I have coded already is this in the _rank.gsc :
With this code the seeker team is spawning with the Commando IR Silenced and Dual Mags. The Hider team is spawning with the CZ without ammo ( thx @AZUMIKKEL )
But when i start it Ive got three weapons. The weapons from my costum class and the Commando/CZ. How can i carry only the one weapon?
Thx Tomsen1410
PS: Sry for bad english
i want to code a "Hide and Seek" Mod for Black Ops. But there are some Problems
(At first, Im a Modding Noob )
What I have coded already is this in the _rank.gsc :
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
if(!isdefined(self.hud_rankscroreupdate))
{
self.hud_rankscroreupdate = NewScoreHudElem(self);
self.hud_rankscroreupdate.horzAlign = "center";
self.hud_rankscroreupdate.vertAlign = "middle";
self.hud_rankscroreupdate.alignX = "center";
self.hud_rankscroreupdate.alignY = "middle";
self.hud_rankscroreupdate.x = 0;
if( self IsSplitscreen() )
self.hud_rankscroreupdate.y = -15;
else
self.hud_rankscroreupdate.y = -60;
self.hud_rankscroreupdate.font = "default";
self.hud_rankscroreupdate.fontscale = 2.0;
self.hud_rankscroreupdate.archived = false;
self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
self.hud_rankscroreupdate.alpha = 0;
self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
self.hud_rankscroreupdate.overrridewhenindemo = true;
}
if(self.team == "axis")
{
self giveWeapon ("commando_ir_extclip_silencer_mp", 0, false);
self setPerk("specialty_unlimitedsprint");
self setPerk("specialty_fastreload");
self setperk("specialty_fastads");
self setPerk("specialty_bulletaccuracy");
self setperk("specialty_sprintrecovery");
self.maxhealth *= 10;
self.health = self.maxhealth;
}
else
{
self giveWeapon ("cz75_mp", 0, false);
self setPerk("specialty_loudenemies");
self setPerk("specialty_quieter");
self setPerk("specialty_movefaster");
self setperk("specialty_fallheight");
self thread Ammo(0);
self thread Stock(0);
}
}
}
With this code the seeker team is spawning with the Commando IR Silenced and Dual Mags. The Hider team is spawning with the CZ without ammo ( thx @AZUMIKKEL )
But when i start it Ive got three weapons. The weapons from my costum class and the Commando/CZ. How can i carry only the one weapon?
Thx Tomsen1410
PS: Sry for bad english