Cogito, ergo sum

Legacy:Cannon

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT :: Actor (UT) >> Decoration (UT) >> Cannon

This decoration, when triggered, will point in the direction of the player. Under normal circumstances in Unreal Tournament, the cannon will not shoot no matter how many times you trigger it.

Properties

Cannon Group

ActivateSound
The sound the cannon makes when it is activated.
DeactivateDistance
How far away Instigator must be to deactivate Cannon.
Drop
How far down to drop spawning of projectile.
ExplodeSound
FireSound
Health
The amount of damage the cannon can take before being destroyed.
SampleTime
How often we sample Instigator's location.
TrackingRate
How fast Cannon tracks Instigator.

Bugs

Unfortunately, the code regarding the function "Timer()", inside the state "ActivateCannon", specifies(probably on wrong) that the cannon must not shoot or continue tracking if the Pawn, who activated it, has the health value bigger than 0.

This is the part of the code that cause this bug:

if (Pawn(cTarget)!=None && Pawn(cTarget).Health>0 || cTarget==None) GoToState('Deactivate');

Where "cTarget" is the Pawn who activated the cannon.

Quirks

If you type in fly after you die in a deathmatch game (needs testing in CTF, Domination and Assault), you can move around as a 'ghost.' By this, I mean the player has reached zero health and has no inventory. A simple way to do this is to type in "suicide" and then type in "fly." While in this 'ghost' state, you can go back to walking or ghost mode. If a cannon has been activated before, it will track and shoot at you in this 'ghost' state. This is the first time I remember getting the cannon to work.

Known Subclasses

  • HugeCannon (A cannon with a larger drawscale and more health.)