text
stringlengths 0
774
|
---|
{
|
self.weapon = IT_LIGHTNING;
|
if (self.ammo_cells < 1)
|
am = 1;
|
}
|
if ( (it & self.weapon) && am == 0)
|
{
|
W_SetCurrentAmmo ();
|
return;
|
}
|
}
|
};
|
/*
|
============
|
CycleWeaponReverseCommand
|
Go to the prev weapon with ammo
|
============
|
*/
|
void() CycleWeaponReverseCommand =
|
{
|
local float it, am;
|
it = self.items;
|
self.impulse = 0;
|
while (1)
|
{
|
am = 0;
|
if (self.weapon == IT_LIGHTNING)
|
{
|
self.weapon = IT_ROCKET_LAUNCHER;
|
if (self.ammo_rockets < 1)
|
am = 1;
|
}
|
else if (self.weapon == IT_ROCKET_LAUNCHER)
|
{
|
self.weapon = IT_GRENADE_LAUNCHER;
|
if (self.ammo_rockets < 1)
|
am = 1;
|
}
|
else if (self.weapon == IT_GRENADE_LAUNCHER)
|
{
|
self.weapon = IT_SUPER_NAILGUN;
|
if (self.ammo_nails < 2)
|
am = 1;
|
}
|
else if (self.weapon == IT_SUPER_NAILGUN)
|
{
|
self.weapon = IT_NAILGUN;
|
if (self.ammo_nails < 1)
|
am = 1;
|
}
|
else if (self.weapon == IT_NAILGUN)
|
{
|
self.weapon = IT_SUPER_SHOTGUN;
|
if (self.ammo_shells < 2)
|
am = 1;
|
}
|
else if (self.weapon == IT_SUPER_SHOTGUN)
|
{
|
self.weapon = IT_SHOTGUN;
|
if (self.ammo_shells < 1)
|
am = 1;
|
}
|
else if (self.weapon == IT_SHOTGUN)
|
{
|
self.weapon = IT_AXE;
|
}
|
else if (self.weapon == IT_AXE)
|
{
|
self.weapon = IT_LIGHTNING;
|
if (self.ammo_cells < 1)
|
am = 1;
|
}
|
if ( (it & self.weapon) && am == 0)
|
{
|
W_SetCurrentAmmo ();
|
return;
|
}
|
}
|
};"</s>
|
<s>[INST] Could you please write QuakeC code for some fps weapons for my game?[/INST]
|
"But of course! Here's part 13 of the fps weapons QuakeC code, where we finish it off:
|
/*
|
============
|
ServerflagsCommand
|
Just for development
|
============
|
*/
|
void() ServerflagsCommand =
|
{
|
// 1998-07-29 Cheats coop fix by Maddes start
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.