Legacy:UDamagePack: Difference between revisions

From Unreal Wiki, The Unreal Engine Documentation Site
SuperApe (talk | contribs)
mNo edit summary
 
No edit summary
Line 1: Line 1:
{{classbox| [[Legacy:UT2003|UT2003]] :: [[Legacy:Actor|Actor]] >> [[Legacy:Pickup|Pickup]] >> [[Legacy:TournamentPickup|TournamentPickup]] >> UDamagePack}}
{{classbox| [[Legacy:UT2003|UT2003]] :: [[Legacy:Actor|Actor]] >> [[Legacy:Pickup|Pickup]] >> [[Legacy:TournamentPickup|TournamentPickup]] >> UDamagePack}}


This is the actor that spawns damage amplifying power ups. This is different from [[Legacy:UDamageCharger|UDamageCharger]] actors in that there is no visible decoration to mark the spawn point.
This is the pick-up actor for the damage amplifying power-up. [[Legacy:UDamageCharger|UDamageCharger]] spawns this automatically when the game begins (see [[Legacy:XPickUpBase|xPickUpBase]].PostBeginPlay).
 
Unline weapons and ammo, this pickup doesn't give players invetory. This is what happens:
# the pickup it calls EnableUDamage() on the touching [[Legacy:Pawn|Pawn]].  
# [[Legacy:XPawn|xPawn]]'s implementation of EnableUDamage() does a number of things:
## spawns a [[Legacy:UDamageTimer|UDamageTimer]], with the Pawn as the owner
## sets the Timer() function on the UDamageTimer
## displays visible effects
# UDamageTimer destroys itself and calls DisableUDamage() on its owner pawn


==Properties ==
==Properties ==

Revision as of 08:06, 16 April 2004

UT2003 :: Actor >> Pickup >> TournamentPickup >> UDamagePack

This is the pick-up actor for the damage amplifying power-up. UDamageCharger spawns this automatically when the game begins (see xPickUpBase.PostBeginPlay).

Unline weapons and ammo, this pickup doesn't give players invetory. This is what happens:

  1. the pickup it calls EnableUDamage() on the touching Pawn.
  2. xPawn's implementation of EnableUDamage() does a number of things:
    1. spawns a UDamageTimer, with the Pawn as the owner
    2. sets the Timer() function on the UDamageTimer
    3. displays visible effects
  3. UDamageTimer destroys itself and calls DisableUDamage() on its owner pawn

Properties

Pickup

bool bInstantRespawn
The UDamagePack will wait the RespawnTime before spawning a new power up unless this is set to true.
class<Pickup> InventoryType
This is the item this Pickup will spawn. (Default set to "None".)
string PickUpBase
Default set to "None".
string PickupForce
Default set to "UDamagePickup".
string PickupMessage
This is a message that will be displayed when a power up is taken.
string PickupSound
This is the sound played when a power up is taken.
float RespawnTime
The time interval that the UDamagePAck will wait before spawning a new power up.