Adjust "scripted textures" for 4.6 compat.
This commit is contained in:
parent
0a40bd84d0
commit
a8e018d507
2 changed files with 24 additions and 50 deletions
|
|
@ -24,26 +24,14 @@ Class PulseGunLED : Actor
|
|||
SetZ(floorz);
|
||||
roll = 180;
|
||||
angle = 180;
|
||||
double stretch = level.pixelstretch;
|
||||
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||
if ( !base )
|
||||
{
|
||||
base = Spawn("AmmoLEDScreen",(PULSELEDBASE,PULSELEDBASE-128.,floorz+64./halfstretch));
|
||||
base.scale.y /= level.pixelstretch;
|
||||
}
|
||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
||||
if ( !base ) base = Spawn("AmmoLEDScreen",(PULSELEDBASE,PULSELEDBASE-128.,floorz+64.*halfstretch));
|
||||
for ( int i=0; i<3; i++ )
|
||||
{
|
||||
if ( !digits[i] )
|
||||
{
|
||||
digits[i] = Spawn("LEDFont",(PULSELEDBASE+1.,PULSELEDBASE-72.+48.*i,floorz+50./halfstretch));
|
||||
digits[i].scale.y /= level.pixelstretch;
|
||||
}
|
||||
}
|
||||
if ( !bar )
|
||||
{
|
||||
bar = Spawn("AmmoCountBar",(PULSELEDBASE+1.,PULSELEDBASE-98.,floorz-26./halfstretch));
|
||||
bar.scale.y /= level.pixelstretch;
|
||||
digits[i] = Spawn("LEDFont",(PULSELEDBASE+1.,PULSELEDBASE-72.+48.*i,floorz+50.*halfstretch));
|
||||
}
|
||||
if ( !bar ) bar = Spawn("AmmoCountBar",(PULSELEDBASE+1.,PULSELEDBASE-98.,floorz-26.*halfstretch));
|
||||
}
|
||||
override void Tick()
|
||||
{
|
||||
|
|
@ -91,20 +79,12 @@ Class FlakCannonLED : Actor
|
|||
SetZ(floorz);
|
||||
roll = 180;
|
||||
angle = 180;
|
||||
double stretch = level.pixelstretch;
|
||||
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||
if ( !base )
|
||||
{
|
||||
base = Spawn("AmmoLEDScreen",(FLAKLEDBASE,FLAKLEDBASE-64.,floorz+32./halfstretch));
|
||||
base.scale.y /= level.pixelstretch;
|
||||
}
|
||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
||||
if ( !base ) base = Spawn("AmmoLEDScreen",(FLAKLEDBASE,FLAKLEDBASE-64.,floorz+32.*halfstretch));
|
||||
for ( int i=0; i<3; i++ )
|
||||
{
|
||||
if ( !digits[i] )
|
||||
{
|
||||
digits[i] = Spawn("LEDFont",(FLAKLEDBASE+1.,FLAKLEDBASE-30.+20.*i,floorz+16./halfstretch));
|
||||
digits[i].scale.y /= level.pixelstretch;
|
||||
}
|
||||
digits[i] = Spawn("LEDFont",(FLAKLEDBASE+1.,FLAKLEDBASE-30.+20.*i,floorz+16.*halfstretch));
|
||||
}
|
||||
}
|
||||
override void Tick()
|
||||
|
|
@ -142,20 +122,12 @@ Class MinigunLED : Actor
|
|||
SetZ(floorz);
|
||||
roll = 180;
|
||||
angle = 180;
|
||||
double stretch = level.pixelstretch;
|
||||
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||
if ( !base )
|
||||
{
|
||||
base = Spawn("AmmoLEDScreen",(MINILEDBASE,MINILEDBASE-32.,floorz+32./halfstretch));
|
||||
base.scale.y /= level.pixelstretch;
|
||||
}
|
||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
||||
if ( !base ) base = Spawn("AmmoLEDScreen",(MINILEDBASE,MINILEDBASE-32.,floorz+32.*halfstretch));
|
||||
for ( int i=0; i<3; i++ )
|
||||
{
|
||||
if ( !digits[i] )
|
||||
{
|
||||
digits[i] = Spawn("LEDFont",(MINILEDBASE+1.,MINILEDBASE-30.+20.*i,floorz+16./halfstretch));
|
||||
digits[i].scale.y /= level.pixelstretch;
|
||||
}
|
||||
digits[i] = Spawn("LEDFont",(MINILEDBASE+1.,MINILEDBASE-30.+20.*i,floorz+16.*halfstretch));
|
||||
}
|
||||
}
|
||||
override void Tick()
|
||||
|
|
@ -177,26 +149,28 @@ Class UTRocketLauncherLED : Actor
|
|||
Actor base, digits[3];
|
||||
transient UTRocketLauncher mygun;
|
||||
|
||||
Default
|
||||
{
|
||||
+NOGRAVITY;
|
||||
+NOBLOCKMAP;
|
||||
+NOINTERACTION;
|
||||
+DONTSPLASH;
|
||||
Radius .1;
|
||||
Height 0;
|
||||
}
|
||||
|
||||
override void PostBeginPlay()
|
||||
{
|
||||
SetOrigin((ROCKETLEDBASE+32,ROCKETLEDBASE,0),false);
|
||||
SetZ(floorz);
|
||||
roll = 180;
|
||||
angle = 180;
|
||||
double stretch = level.pixelstretch;
|
||||
double halfstretch = (1.+level.pixelstretch)/2.;
|
||||
if ( !base )
|
||||
{
|
||||
base = Spawn("AmmoLEDScreen",(ROCKETLEDBASE,ROCKETLEDBASE-32.,floorz+32./halfstretch));
|
||||
base.scale.y /= level.pixelstretch;
|
||||
}
|
||||
double halfstretch = 1.+(level.pixelstretch-1.)/2.;
|
||||
if ( !base ) base = Spawn("AmmoLEDScreen",(ROCKETLEDBASE,ROCKETLEDBASE-32.,floorz+32.*halfstretch));
|
||||
for ( int i=0; i<3; i++ )
|
||||
{
|
||||
if ( !digits[i] )
|
||||
{
|
||||
digits[i] = Spawn("LEDFont",(ROCKETLEDBASE+1.,ROCKETLEDBASE-30.+20.*i,floorz+16./halfstretch));
|
||||
digits[i].scale.y /= level.pixelstretch;
|
||||
}
|
||||
digits[i] = Spawn("LEDFont",(ROCKETLEDBASE+1.,ROCKETLEDBASE-30.+20.*i,floorz+16.*halfstretch));
|
||||
}
|
||||
}
|
||||
override void Tick()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue