Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cicada: Various Updates #212

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Binaries.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Animations,UT3VH_Paladin_Anims.ukx,https://drive.google.com/uc?export=download&i
Animations,UT3VH_Raptor_Anims.ukx,https://drive.google.com/uc?export=download&id=1GAGc8gKLVdO66snC_5j2LVyGBn9QxSTj,6294f557cb1f06e02c1973fbea67478b55242d3c95a61688c380178ad5ac43d1,--content-disposition
Animations,UT3VH_Scorpion_Anims.ukx,https://drive.google.com/uc?export=download&id=1QSeKP6KxkT9vBNyptGE7ouPl76W1EL-C,b66bc22d1df53ae1335c21f5053c08fcb2af7c4554f829a64b3a2ea8618f6b2c,--content-disposition
Animations,UT3VH_SPMA_Anims.ukx,https://drive.google.com/uc?export=download&id=1cDv2_FcH72_1rgIjBt5zdTU_pSRpkrqe,563c43204035a855062f92175c50f62807addd98c4e5a450fb4646918850f1ff,--content-disposition
Sounds,UT3A_Vehicle_Cicada.uax,https://cloud.greatemerald.eu/s/jCvuP6gYNwn7vAS/download,a9151ade565e513e84a6a4ff26104395db8edb5a4e494589859aa6134790caff,
Sounds,UT3A_Vehicle_Cicada.uax,https://drive.google.com/uc?export=download&id=1PNmOD4l6ABxcEcjMxXOJTBdQxtKde9kz,2ffb6cad35c71cfdc47f86fb24d5627060c41e3e83567f9791140ab6d6f41d2a,--content-disposition
Sounds,UT3A_Vehicle_Goliath.uax,https://drive.google.com/uc?export=download&id=1uFWoDVvJpaGgDzxAYA8KkGT6Ija4CRKI,f2c9cafc34d60ec4321d1402cee7e8345a31265f86a3e85667e6e31d77bd8ed0,--content-disposition
Sounds,UT3A_Vehicle_Hellbender.uax,https://drive.google.com/uc?export=download&id=1seZJkSMcgqS5aNgjNgqlj598RCad_DYV,b62cbd2a0bc4981ddb4af4363e17111a045d47d631748313d5fc7f219b423e84,--content-disposition
Sounds,UT3A_Vehicle_Hoverboard.uax,https://cloud.greatemerald.eu/s/olW60iObnWHSNfy/download,9f9e661957030c21c481927acf415758cabc21bf73562a4146a528aae60971af,
Expand All @@ -26,6 +26,8 @@ Sounds,UT3A_Vehicle_Paladin.uax,https://cloud.greatemerald.eu/s/TQFft9WzgaWtDq5/
Sounds,UT3A_Vehicle_Raptor.uax,https://cloud.greatemerald.eu/s/9GddwrLFitrqjlG/download,a78f2c2445e49c71376e673d8ba99768cbe60210d056233638678840d7c5a610,
Sounds,UT3A_Vehicle_Scorpion.uax,https://drive.google.com/uc?export=download&id=1l7cC58tLhf-nAps3Dzk00FttPPchNaDP,5c7f09e1e1950cd992f73171104d34c8cc500e2971598d53a47484d0d43493c9,--content-disposition
Sounds,UT3A_Vehicle_Viper.uax,https://cloud.greatemerald.eu/s/a9qqwONoqjIMdqD/download,14aa152500702836d0971df6b612ae6a9afd2143358868d609b924114ab70bef,
Sounds,UT3A_Weapon_BulletImpacts.uax,https://drive.google.com/uc?export=download&id=1vt-y6Dgykp68uFOPvbpfBZr7Vwy6IlTg,4ae8a24b0de2934f8a65fcc7686d5d7d3fa82a0c87be032240bd2f1a330cb954,--content-disposition
Sounds,UT3A_Weapon_RocketLauncher.uax,https://drive.google.com/uc?export=download&id=1HuzB1YW_n8zR3FMJIuwLcqD3H9Imi4Oz,5077294233d0ad4fb6c150f5c72517b47056163c36a157feb6990a6951cf0a1e,--content-disposition
Sounds,UT3SPMA.uax,https://drive.google.com/uc?export=download&id=17UqS7l3-Jx-lbN34S0QrLVglb6WH2Gxh,1627d76b088cc756d58002fe1bee8f66e305f1df0e3c4605b9ebe41f737fabe5,--content-disposition
Sounds,UT3Weapons2.uax,https://github.com/GreatEmerald/UT3Weapons/raw/master/Sounds/UT3Weapons2.uax,474ae417f521dff0345bfab93924953cc2e42640095f87f38a62b9a8a5eda32d,
Sounds,UT3Weapons.uax,https://github.com/GreatEmerald/UT3Weapons/raw/master/Sounds/UT3Weapons.uax,14700fa3224be02dd5eec8a906a15b8b73549b85ed4843ce58d738d72a3d67dd,
Expand Down
184 changes: 121 additions & 63 deletions Classes/UT3Cicada.uc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function AnimateVehicle()
CurrentAnim = "Idle";
}
}

simulated function DrivingStatusChanged()
{

Expand All @@ -90,6 +91,33 @@ simulated function DrivingStatusChanged()
TrailEffects[i].SetRelativeRotation( TrailEffectRotation );
}
}
if (StreamerEffect.Length == 0)
{
StreamerEffect.Length = StreamerEffectOffset.Length;

for(i=0; i<StreamerEffect.Length; i++)
if (StreamerEffect[i] == None)
{
StreamerEffect[i] = spawn(StreamerEffectClass, self,, Location + (StreamerEffectOffset[i] >> Rotation) );
StreamerEffect[i].SetBase(self);
}
}
}
else
{
if (Level.NetMode != NM_DedicatedServer)
{
for(i=0;i<TrailEffects.Length;i++)
TrailEffects[i].Destroy();

TrailEffects.Length = 0;

for(i=0; i<StreamerEffect.Length; i++)
StreamerEffect[i].Destroy();

StreamerEffect.Length = 0;
}
}
}
else
{
Expand Down Expand Up @@ -246,71 +274,125 @@ simulated function TeamChanged()
defaultproperties
{

//Drawscale = 1.3

//=======================
// @100GPing100
//=============================================================================
// Identity
//=============================================================================
VehiclePositionString = "in a UT3 Cicada";
VehicleNameString = "UT3 Cicada"

CollisionHeight=70.000000

//=============================================================================
// Appearance
//=============================================================================
Drawscale = 1.0
Mesh = SkeletalMesh'UT3VH_Cicada_Anims.VH_Cicada_Anims';
RedSkin = Shader'UT3CicadaTex.CicadaSkin';
BlueSkin = Shader'UT3CicadaTex.CicadaSkinBlue';

DriverWeapons(0)=(WeaponClass=class'UT3CicadaMissileLauncher',WeaponBone=Rt_Gun_Yaw);
DriverWeapons(1)=(WeaponClass=class'UT3CicadaMissileLauncherLeft',WeaponBone=Lt_Gun_Yaw);
PassengerWeapons(0)=(WeaponPawnClass=Class'UT3CicadaTurretPawn',WeaponBone=MainTurret_Yaw)
// @100GPing100
//==========END==========
VehicleNameString = "UT3 Cicada"

//DriverWeapons(0)=(WeaponClass=class'UT3CicadaMissileLauncher',WeaponBone=RightRLAttach);
//DriverWeapons(1)=(WeaponClass=class'UT3CicadaMissileLauncher',WeaponBone=LeftRLAttach);
//PassengerWeapons(0)=(WeaponPawnClass=Class'UT3CicadaTurretPawn',WeaponBone="GatlingGunAttach")

//DamagedEffectOffset=(X=-10,Y=50,Z=120) //Engine Fire Point
//DamagedEffectScale=1.2 //Engine Fire Size
DamagedEffectOffset=(X=210,Y=-40,Z=-17) //Front Fire Point
DamagedEffectScale=1.0 //Front Fire Size

HeadlightCoronaOffset=()
HeadlightCoronaOffset(0)=(X=243,Y=0,Z=67)
HeadlightCoronaMaterial=Material'EpicParticles.FlashFlare1'
HeadlightCoronaMaxSize=45

HeadlightProjectorOffset=(X=240.0,Y=0,Z=67) //(X=82.5,Y=0,Z=55.5)
HeadlightProjectorRotation=(Yaw=0,Pitch=-1000,Roll=0)
HeadlightProjectorMaterial=Texture'VMVehicles-TX.NewPRVGroup.PRVProjector'
HeadlightProjectorScale=0.20

StreamerEffectOffset(0)=(X=175,Y=-95,Z=-33);
StreamerEffectOffset(1)=(X=175,Y=95,Z=-33);
StreamerEffectOffset(2)=(X=-250,Y=-100,Z=130);
StreamerEffectOffset(3)=(X=-250,Y=100,Z=130);
StreamerEffectOffset(4)=(X=-40,Y=-195,Z=67);
StreamerEffectOffset(5)=(X=-40,Y=195,Z=67);
StreamerOpacityRamp=(Min=1200.000000,Max=1600.000000)
StreamerOpacityChangeRate=1.0
StreamerOpacityMax=0.25 //0.7
StreamerEffectClass=class'Onslaught.ONSAttackCraftStreamer'

TrailEffectRotation=(Yaw=32768)
TrailEffectPositions(0)=(X=-63,Y=-42.5,Z=118) //(X=-53,Y=-33,Z=63)
TrailEffectPositions(1)=(X=-63,Y=42.5,Z=118)

//=============================================================================
// Sound
//=============================================================================
IdleSound=Sound'UT3A_Vehicle_Cicada.UT3CicadaSingles.UT3CicadaEngineLoop02Cue'
StartUpSound=Sound'UT3A_Vehicle_Cicada.UT3CicadaEngineStart.UT3CicadaEngineStartCue'
ShutDownSound=Sound'UT3A_Vehicle_Cicada.UT3CicadaEngineStop.UT3CicadaEngineStopCue'
TargetLockSound=sound'UT3A_Vehicle_Cicada.UT3CicadaSingles.UT3CicadaTargetLock01'
ExplosionSounds=()
ExplosionSounds(0)=Sound'UT3A_Vehicle_Cicada.UT3CicadaExplode.UT3CicadaExplodeCue'
ImpactDamageSounds=()
ImpactDamageSounds(0)=Sound'UT3A_Vehicle_Cicada.UT3CicadaCollide.UT3CicadaCollideCue'
BulletSounds = ()
BulletSounds(0) = Sound'UT3A_Weapon_BulletImpacts.UT3BulletImpactMetal.UT3BulletImpactMetalCue'

SoundVolume=255

//=============================================================================
// Health & Damage
//=============================================================================
ImpactDamageMult = 0.00003
MomentumMult=0.400000
DamagedEffectHealthSmokeFactor=0.65
DamagedEffectHealthFireFactor=0.40
DamagedEffectFireDamagePerSec=2.0

//=============================================================================
// Movement
//=============================================================================

GroundSpeed=1600
MaxRandForce=2.0
RandForceInterval=0.95
MaxThrustForce=80.0 //80.0
LongDamping=0.8 //0.3
MaxYawRate=1.8 //1.5
TurnDamping=65.0 //50.0
MaxRiseForce=130.0 //200
UpDamping=0.08 //0.05
MaxStrafeForce=45.0 //65.0
LatDamping=0.08 //0.05

RollTorqueMax=60 //100
RollTorqueStrafeFactor=130 //100
RollTorqueTurnFactor=250 //750
RollDamping=100.0 //30.0
PitchTorqueFactor=50.0 //200.0
PitchTorqueMax=20.0 //35.0
TurnTorqueFactor=600.0
TurnTorqueMax=220.0 //200.0
TurnDamping=65.0 //50.0
MaxYawRate=1.8 //1.5
MaxRiseForce=130.0 //200
UpDamping=0.08 //0.05
MaxStrafeForce=45.0 //65.0
LatDamping=0.08 //0.05
MaxThrustForce=80.0 //80.0
LongDamping=0.8 //0.3
CollisionHeight=70.000000
//DriverWeapons(0)=(WeaponClass=class'UT3CicadaMissileLauncher',WeaponBone=RightRLAttach);
//DriverWeapons(1)=(WeaponClass=class'UT3CicadaMissileLauncher',WeaponBone=LeftRLAttach);
TargetLockSound=sound'UT3A_Vehicle_Cicada.Sounds.A_Vehicle_Cicada_TargetLock01'
IdleSound=Sound'UT3A_Vehicle_Cicada.Sounds.A_Vehicle_Cicada_EngineLoop02'
StartUpSound=Sound'UT3A_Vehicle_Cicada.Sounds.A_Vehicle_Cicada_Start01'
ShutDownSound=Sound'UT3A_Vehicle_Cicada.Sounds.A_Vehicle_Cicada_Stop01'//8/10
ImpactDamageMult = 0.00003 //0.0003
DamagedEffectHealthSmokeFactor=0.65 //0.5
DamagedEffectHealthFireFactor=0.40 //0.25
DamagedEffectFireDamagePerSec=2.0 //0.75
ExplosionSounds=()
ExplosionSounds(0)=Sound'UT3A_Vehicle_Cicada.Sounds.A_Vehicle_Cicada_Explode02'
ImpactDamageSounds=()
ImpactDamageSounds(0)=Sound'UT3A_Vehicle_Cicada.SoundCues.A_Vehicle_Cicada_Collide'
//PassengerWeapons(0)=(WeaponPawnClass=Class'UT3CicadaTurretPawn',WeaponBone="GatlingGunAttach")
TurnTorqueMax=220.0 //200.0

MaxRandForce=2.0
RandForceInterval=0.95

//=============================================================================
// Entry & Exit
//=============================================================================
EntryRadius=300
EntryPosition=(X=40,Y=0,Z=0)

ExitPositions(0)=(X=80,Y=-210,Z=25)
ExitPositions(1)=(X=80,Y=210,Z=25)
ExitPositions(2)=(X=330,Y=0,Z=35)
ExitPositions(3)=(X=90,Y=0,Z=160)

MomentumMult=0.400000 //?


//=============================================================================
// Camera
//=============================================================================
bDrawMeshInFP=True

//FPCamPos=(X=265,Y=0,Z=40) //Front Cam
FPCamPos=(X=40,Y=100,Z=80) //Launcher Cam, I prefer this one but I encouarge trying both

Expand All @@ -319,28 +401,4 @@ defaultproperties
TPCamLookAt=(X=50.0,Y=0.0,Z=0)
TPCamWorldOffset=(Z=260)

//Aerial View
//TPCamLookAt=(X=50.0,Y=0.0,Z=0)
//TPCamWorldOffset=(Z=250)

TrailEffectRotation=(Yaw=32768)
TrailEffectPositions(0)=(X=-63,Y=-42.5,Z=118) //(X=-53,Y=-33,Z=63)
TrailEffectPositions(1)=(X=-63,Y=42.5,Z=118)

//DamagedEffectOffset=(X=-10,Y=50,Z=120) //Engine Fire Point
//DamagedEffectScale=1.2 //Engine Fire Size
DamagedEffectOffset=(X=210,Y=-40,Z=-17) //Front Fire Point
DamagedEffectScale=1.0 //Front Fire Size

HeadlightCoronaOffset=()
HeadlightCoronaOffset(0)=(X=243,Y=0,Z=67)
HeadlightCoronaMaterial=Material'EpicParticles.FlashFlare1'
//HeadlightCoronaMaterial=Material'EmitterTextures.Flares.EFlareOY'
HeadlightCoronaMaxSize=45

HeadlightProjectorOffset=(X=240.0,Y=0,Z=67) //(X=82.5,Y=0,Z=55.5)
HeadlightProjectorRotation=(Yaw=0,Pitch=-1000,Roll=0)
HeadlightProjectorMaterial=Texture'VMVehicles-TX.NewPRVGroup.PRVProjector'
HeadlightProjectorScale=0.20

}
120 changes: 120 additions & 0 deletions Classes/UT3CicadaDecoy.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*
* Copyright © 2018 GreatEmerald
* Copyright © 2018 HellDragon
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* (1) Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* (2) Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimers in
* the documentation and/or other materials provided with the
* distribution.
*
* (3) The name of the author may not be used to
* endorse or promote products derived from this software without
* specific prior written permission.
*
* (4) The use, modification and redistribution of this software must
* be made in compliance with the additional terms and restrictions
* provided by the Unreal Tournament 2004 End User License Agreement.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* This software is not supported by Atari, S.A., Epic Games, Inc. or any
* of such parties' affiliates and subsidiaries.
*/
class UT3CicadaDecoy extends ONSDecoy;

var class<emitter> DecoyFlightSFXClass; // Class of the emitter to spawn for the effect
var class<emitter> DecoyLaunchSFXClass; // Class of the emitter to spawn when launched
var emitter DecoyFlightSFX; // The actual effect
var float DecoyRange; // Much much range before the decoy says look at me

var ONSDualAttackCraft ProtectedTarget; // Protect this vehicle

simulated function PostBeginPlay()
{
super.PostBeginPlay();
Velocity = Speed * Vector(Rotation);
}

simulated function PostNetBeginPlay()
{
super.PostNetBeginPlay();

if ( EffectIsRelevant(Location, false) )
Spawn(DecoyLaunchSFXClass,,,location,Rotation);

if ( (Level.NetMode != NM_DedicatedServer) && (DecoyFlightSFXClass != None) )
{
DecoyFlightSFX = spawn(DecoyFlightSFXClass);
if (DecoyFlightSFX!=None)
DecoyFlightSFX.SetBase(self);
}
}

function bool CheckRange(actor Aggressor)
{
return vsize(Aggressor.Location - location) <= DecoyRange;
}

simulated event Destroyed() // Remove it from the Dual Attack craft's array
{
local int i;

super.Destroyed();

if (ProtectedTarget!=None)
{
for (i=0;i<ProtectedTarget.Decoys.Length;i++)
{
if (ProtectedTarget.Decoys[i]!=none && ProtectedTarget.Decoys[i] == self)
{
ProtectedTarget.Decoys.Remove(i,1);
return;
}
}
}

if (DecoyFlightSFX!=None)
DecoyFlightSFX.Destroy();
}


simulated function Landed( vector HitNormal )
{
super.Landed(HitNormal);
Destroy();
}

defaultproperties
{
LifeSpan=5.0
DecoyFlightSFXClass=class'ONSDecoyFlight'
DecoyLaunchSFXClass=class'UT3CicadaDecoyLaunch'
DecoyRange=2048
Speed=1000
MaxSpeed=1500
MomentumTransfer=10000
Damage=50.0
DamageRadius=250.0
RemoteRole=ROLE_SimulatedProxy
bBounce=true
bNetTemporary=True
Physics=PHYS_Falling
AmbientSound=sound'CicadaSnds.Decoy.DecoyFlight'
}
Loading