Can help me with this?
Printable View
Can help me with this?
up
here change all the allied weapon tik's to
// Additional DM Realism Loadout
dmrealism additionalstartammo "grenade" 0
dmrealism additionalstartammo "smokegrenade" 1
If set g_realismmode 1 it runs if not then you get what ever dm additionalstartammo "grenade" is set to.
Spearhead and breakthrough use the player models to give out weapons so if you swap m1 to a enfield then you get the ammo for both weapons, here are posts on it here some place you can check out for more information.Code:main:
level.real = getcvar "g_realismmode"
if(level.real == "1")
{
thread us
thread russain
thread uk
}
end
us:
waitframe
local.n = randomint 99999
self weaponcommand mainhand targetname ("w" + local.n)
if ($("w" + local.n))
{
local.weap = $("w" + local.n)
local.weap.targetname = ""
}
else
end
switch(local.weap.model)
{
/*
ALLIED WEAPONS
These are weapons to be swapped do not remove slashs from weapon unless that is the
game you are running
*/
// BREAKTHROUGH WEAPONS TO BE SWAPPED
case "models/weapons/m2frag_grenade.tik":
/*
These are weapons to be taken from players
*/
self take "models/weapons/m2frag_grenade.tik"
// checks allied skins
switch(self.model)
{
case "models/player/allied_manon.tik":
case "models/player/allied_101st_Captain.tik":
case "models/player/allied_101st_Infantry.tik":
case "models/player/allied_101st_Scout.tik":
case "models/player/allied_501st_PIR_Scout.tik":
case "models/player/allied_501st_PIR_Soldier.tik":
case "models/player/allied_airborne.tik":
case "models/player/allied_oss.tik":
case "models/player/american_army.tik":
case "models/player/american_ranger.tik":
// swaps allied weapons
wait 3
// Give new weapon
self give "models/weapons/m2frag_grenade.tik"
waitframe
local.player ammo grenade 1
waitframe
break
}
end
rus:
waitframe
local.n = randomint 99999
self weaponcommand mainhand targetname ("w" + local.n)
if ($("w" + local.n))
{
local.weap = $("w" + local.n)
local.weap.targetname = ""
}
else
end
switch(local.weap.model)
{
/*
Russain WEAPONS
These are weapons to be swapped do not remove slashs from weapon unless that is the
game you are running
*/
// BREAKTHROUGH WEAPONS TO BE SWAPPED
case "models/weapons/Russian_F1_grenade.tik":
/*
These are weapons to be taken from players
*/
self take "models/weapons/Russian_F1_grenade.tik"
// checks allied skins
switch(self.model)
{
case "models/player/allied_russian_corporal.tik":
case "models/player/allied_russian_crazy_boris.tik":
case "models/player/allied_russian_recon_scout.tik":
case "models/player/allied_russian_recon_soldier.tik":
case "models/player/allied_russian_seaman.tik":
// swaps allied weapons
wait 3
// Give new weapon
self give "models/weapons/Russian_F1_grenade.tik"
waitframe
local.player ammo grenade 1
waitframe
break
}
end
uk:
waitframe
local.n = randomint 99999
self weaponcommand mainhand targetname ("w" + local.n)
if ($("w" + local.n))
{
local.weap = $("w" + local.n)
local.weap.targetname = ""
}
else
end
switch(local.weap.model)
{
/*
ALLIED WEAPONS
These are weapons to be swapped do not remove slashs from weapon unless that is the
game you are running
*/
// BREAKTHROUGH WEAPONS TO BE SWAPPED
case "models/weapons/mills_grenade.tik":
/*
These are weapons to be taken from players
*/
self take "models/weapons/mills_grenade.tik"
// checks allied skins
switch(self.model)
{
case "models/player/allied_british_6th_airborne_captain.tik":
case "models/player/allied_british_6th_airborne_paratrooper.tik":
case "models/player/allied_british_tank_corporal.tik":
// swaps allied weapons
wait 3
// Give new weapon
self give "models/weapons/mills_grenade.tik"
waitframe
local.player ammo grenade 1
waitframe
break
}
end
here is your pk3 adjusted to work runs from mike_torso.st
It worked, but what did you modify?
can not what?Quote:
then you can not ?
use the script?Quote:
What have to do?
I changed the dmrealism additionalstartammo "grenade" 0 then the script first takes away the grenades for all the player models ( skins ) then gives it back " local.player ammo grenade 1 " ( 1 is amount to give back ). script does that for every player skin. To add more grenades to realism change the local.player ammo grenade 1 to how many you want player to get.
in the all 3 games AA, SH & BT.
Quote:
Spearhead and breakthrough use the player models to give out weapons