Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class mGmTransFire extends TransFire
- config(mGmTrans);
- var() Sound TransFireSound;
- var() Sound RecallFireSound;
- var() String TransFireForce;
- var() String RecallFireForce;
- simulated function PlayFiring()
- {
- if (!mGmTransLauncher(Weapon).bBeaconDeployed)
- {
- Weapon.PlayAnim(FireAnim, FireAnimRate, TweenTime);
- ClientPlayForceFeedback( TransFireForce ); // jdf
- }
- }
- function Rotator AdjustAim(Vector Start, float InAimError)
- {
- return Instigator.Controller.Rotation;
- }
- simulated function bool AllowFire()
- {
- return ( mGmTransLauncher(Weapon).AmmoChargeF >= 1.0 );
- }
- function projectile SpawnProjectile(Vector Start, Rotator Dir)
- {
- local mGmTransBeacon TransBeacon;
- if (mGmTransLauncher(Weapon).TransBeacon == None)
- {
- if ( (Instigator == None) || (Instigator.PlayerReplicationInfo == None) || (Instigator.PlayerReplicationInfo.Team == None) )
- TransBeacon = Weapon.Spawn(class'mGmTrans.mGnTransBeacon',,, Start, Dir);
- else if ( Instigator.PlayerReplicationInfo.Team.TeamIndex == 0 )
- TransBeacon = Weapon.Spawn(class'mGmTrans.mGmRedBeacon',,, Start, Dir);
- else
- TransBeacon = Weapon.Spawn(class'mGmTrans.mGmBlueBeacon',,, Start, Dir);
- else
- TransBeacon = Weapon.Spawn(class'mGmTrans.mGmNoBeacon',,, Start, Dir);
- mGmTransLauncher(Weapon).TransBeacon = TransBeacon;
- Weapon.PlaySound(TransFireSound,SLOT_Interact,,,,,false);
- }
- else
- {
- mGmTransLauncher(Weapon).ViewPlayer();
- if ( mGmTransLauncher(Weapon).TransBeacon.Disrupted() )
- {
- if( (Instigator != None) && (PlayerController(Instigator.Controller) != None) )
- PlayerController(Instigator.Controller).ClientPlaySound(Sound'WeaponSounds.BSeekLost1');
- }
- else
- {
- DasTransLauncher(Weapon).TransBeacon.Destroy();
- DasTransLauncher(Weapon).TransBeacon = None;
- Weapon.PlaySound(RecallFireSound,SLOT_Interact,,,,,false);
- }
- }
- return TransBeacon;
- }
- defaultproperties
- {
- AmmoClass=None
- AmmoPerFire=1
- FireAnimRate=1.5
- ProjectileClass=class'DasTrans.DasTransBeacon'
- ProjSpawnOffset=(X=25,Y=8,Z=-10)
- FireRate=0.25
- bWaitForRelease=true
- bModeExclusive=false
- FireSound=None
- TransFireSound=Sound'WeaponSounds.Translocator.TranslocatorFire'
- RecallFireSound=Sound'WeaponSounds.Translocator.TranslocatorModuleRegeneration'
- TransFireForce="TranslocatorFire" // jdf
- RecallFireForce="TranslocatorModuleRegeneration" // jdf
- BotRefireRate=0.3
- bLeadTarget=false
- }
Advertisement
Add Comment
Please, Sign In to add comment