Originally Posted by
The Shadow
How can I change the torso or script so that when I enter the plane it forces you to take out a pistol?
in the PLANE_TORSO state, comment or remove the "safeholster 1" line
Code:
state PLANE_TORSO
{
movetype anim
camera behind
entrycommands
{
//deactivateweapon righthand
//safeholster 1
modheight "stand"
movementstealth "1.0"
moveposflags "running" "running"
viewmodelanim idle
}
action
{
unarmed_stand_idle : default
}
states
{
IN_PLANE : default
STAND : KILLED
}
}
and in the server_planes/trigger.scr "fly:" thread, add this green code
Code:
fly:
local.player = parm.other
if(local.player.flying != 1 || local.player.OWNS == 1)
{
local.team = parm.other.dmteam
local.use_teams = waitexec server_planes/settings.scr::getcmd "use-teams"
if (local.use_teams == "1" || local.use_teams == 1)
{
if(self.team != local.player.dmteam)
{
local.player iprint "You don't have the training for this aircraft"
self.plane light 0 0 1 100
waitframe
self.plane light 1 0 0 50
end
}
}
local.player weaponcommand dual targetname ("weapon" + local.player.entnum)
local.weapon = $("weapon" + local.player.entnum )
if (!local.weapon) {
local.player holster
} else {
local.weapon targetname ""
}
wait 0.5;
if (!local.player)
end
local.player.plane_start = self.start_pos
local.player scale self.plane_scale
local.player exec server_planes/server_fly.scr
local.trigdelay = waitexec server_planes/settings.scr::getcmd "trig-delay"
local.trigdelay = int local.trigdelay
self nottriggerable
self.plane hide
wait local.trigdelay
self.plane show
self triggerable
}
end