Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RokkitPawn extends GamePawn
- config(Game);
- var vector BoostVector;
- var bool bKeepBoosting;
- simulated function PostBeginPlay() {
- super.PostBeginPlay();
- `log("=================== Pawn Function Loaded ===================");
- }
- simulated function BoostPawn( vector HitNormal ) {
- `log("=================== Boost Pawn Entered ===================");
- SetPhysics(PHYS_Falling);
- Velocity += BoostVector;
- }
- event Tick( float DeltaTime ) {
- if (bKeepBoosting == true) {
- Velocity += BoostVector/2;
- }
- }
- defaultproperties
- {
- BoostVector=(X=0,Y=0,Z=1000)
- bKeepBoosting=false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement