I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
Legacy:AdrenalinePickup
From Unreal Wiki, The Unreal Engine Documentation Site
This is the adreneline pickup class. Useful when fiddling with adreneline mutators.
Contents |
[edit] Properties
This property is hidden.
- float AdrenalineAmount
- Amount of adrenaline to award the Controller who picks this up.
[edit] Function
- float DetourWeight( Pawn Other, float PathWeight )
- Value of this path to take a quick detour (usually 0, used when on route to distant objective, but want to grab inventory, for example).
[edit] Events
- float BotDesirability( Pawn Bot )
- This returns MaxDesirability unless Bot.Controller.bHuntPlayer is true or Bot.Controller.NeedsAdrenaline() returns false.
[edit] States
- Pickup (auto)
- When the function Touch is called, the Other's Pawn.Controller.AwardAdrenaline( AdrenalineAmount ) function is called (if ValidTouch(Other)), the pickup is announced and set to respawn.
[edit] Source Code
The Legacy:AdrenalinePickup/Script page lists all the code for the class, heavily commented for learning.
