tutorial: playerweapon P_flak88 to an auto fire enemy weapon
Posted: Mon Apr 07, 2003 12:37 am
how to convert the playerweapon P_flak88 to an automaticly fireing enemy weapon
/////////////////////////////////////////////////
the base for the flak88
///////////////////////////////////////////////////
step1:
extract models/statweapons/p_flak88.tik and rename it to myflak88base.tik
step2:
change this "classname FixedTurret" to this "classname animate"
step3:
remove or comment out this "spawnturret 0 "statweapons/P_flak88_cannon.tik" // Cannon attached to the vehicle"
step4:
remove this
client
{
//cache models/statweapons/P_flak88_cannon.tik
}
step5:
change this
/*QUAKED turretweapon_german_flak88 (0.0 .0 0.0) (-55 -55 0) (55 55 128)
Flak 88
*/
to this
/*QUAKED turretweapon_german_myflak88base (0.0 .0 0.0) (-55 -55 0) (55 55 128)
Flak 88
*/
/////////////////////////////////////////////////////
the flak88 cannon
/////////////////////////////////////////////////
step1:
extract /models/statweapons/p_flak88_cannon and rename it to my_flak88.tik
step2:
add this to the bottom of your tik
/*QUAKED turretweapon_german_myflak88 (0.5 .25 0.25) (-32 -32 0) (32 32 128)
Big gun - Boom boom.
*/
///////////////////////
Put the tiks into your pk3 in the models/statweapon directory and open mohradiant your gun will now the there and useable
///////////////////////////////////////
the script
//////////////////////////////////////////
$myflak88 thread flak88_start
flak88_start:
self turnspeed 10
self exec global/vehicles_thinkers.scr::enemy_flak_think
wait 1
level.playertanktarget = $player//or use script to set target
end
/////////////////////////////////////////////////
the base for the flak88
///////////////////////////////////////////////////
step1:
extract models/statweapons/p_flak88.tik and rename it to myflak88base.tik
step2:
change this "classname FixedTurret" to this "classname animate"
step3:
remove or comment out this "spawnturret 0 "statweapons/P_flak88_cannon.tik" // Cannon attached to the vehicle"
step4:
remove this
client
{
//cache models/statweapons/P_flak88_cannon.tik
}
step5:
change this
/*QUAKED turretweapon_german_flak88 (0.0 .0 0.0) (-55 -55 0) (55 55 128)
Flak 88
*/
to this
/*QUAKED turretweapon_german_myflak88base (0.0 .0 0.0) (-55 -55 0) (55 55 128)
Flak 88
*/
/////////////////////////////////////////////////////
the flak88 cannon
/////////////////////////////////////////////////
step1:
extract /models/statweapons/p_flak88_cannon and rename it to my_flak88.tik
step2:
add this to the bottom of your tik
/*QUAKED turretweapon_german_myflak88 (0.5 .25 0.25) (-32 -32 0) (32 32 128)
Big gun - Boom boom.
*/
///////////////////////
Put the tiks into your pk3 in the models/statweapon directory and open mohradiant your gun will now the there and useable
///////////////////////////////////////
the script
//////////////////////////////////////////
$myflak88 thread flak88_start
flak88_start:
self turnspeed 10
self exec global/vehicles_thinkers.scr::enemy_flak_think
wait 1
level.playertanktarget = $player//or use script to set target
end