Flag carry graphics for CTF

Charles Spurrill 2010-11-10 16:55:37 -08:00
parent 6585712061
commit 9c35301d5a
5 changed files with 8 additions and 7 deletions

View File

@ -5,14 +5,12 @@ material Flag
{
pass
{
scene_blend alpha_blend
cull_hardware none
ambient 0.500000 0.500000 0.500000 1.000000
diffuse 0.640000 0.640000 0.640000 1.000000
specular 0.000000 0.000000 0.000000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
scene_blend alpha_blend
texture_unit
{
texture flag.png

View File

@ -82,8 +82,11 @@ protected func Initialize()
public func HasNoFadeOut() { return true; }
public func GetCarryMode() { return CARRY_HandBack; }
public func GetCarryPhase() { return 700; }
public func GetCarryMode() { return CARRY_Back; }
public func GetCarryTransform()
{
return Trans_Mul(Trans_Translate(0,-17000,0),Trans_Rotate(90,0,1,0));
}
// Checks whether the carrier has reached its base.
protected func FxFlagCarriedTimer(object target)
@ -149,6 +152,6 @@ private func BeamFlag(bool msg)
local Name = "$Name$";
protected func Definition(def)
{
SetProperty("MeshTransformation", Trans_Rotate(60, 0, 1, 0), def);
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(60, 0, 1, 0), Trans_Scale(1200)), def);
SetProperty("MeshTransformation", Trans_Mul(Trans_Translate(-130000,-3000,0), Trans_Rotate(60,0,1,0)), def);
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(60, 0, 1, 0), Trans_Scale(1200), Trans_Translate(-4000,6500,-3000)), def);
}