GameAmp Fansite Network Gamer Shirts, GameAmp T-Shirts
Change Game Sites   
About GameAmp, Inc GameAmp Staff Register for a free account
GameAmp Login GameAmp Password
GameAmp Homepage
GameAmp Game MapsGameAmp Game ListLatest Video Game NewsVisit the Video Game ForumsGame Item AuctionsFind Gamer FriendsGame Screenshots
Video Games Subnav
GameAmp Information

GameAmp: incompatible code

clear gif
Forum >> Modding >> UT Comp >> incompatible code

 
User Message
ChookWoods Profile
ChookWoods
View Profile of ChookWoods
Posts: 0
Joined: 05/15/2005
Credibility: 0 pts
incompatible code 

in a map im making, i got my friend to code me a new jump pad (the standard jump pad has a limit on how high it can send you). the code works fine for standard ut2004, and for utcomp warmup mode. but once the warmup ends, the jump pad only sends the play as high as a standard jump pad would.

i figure there must be some form of incompatability with utcomp and the code he has written, so it would be good if smeone could take a look at it and see how the code would need to be changed to be compatible with utcomp.

CODE
class ScaleableJumpPad extends UTJumpPad

placeable;



var(JumpPad) float  VelocityScaler;



function PostBeginPlay()

{

Super.PostBeginPlay();



JumpVelocity *= VelocityScaler;

}



defaultproperties

{

VelocityScaler=+1.0

}



thanks in advance for your help.



05/16/05 12:14 Login to rate this user's post!
Lotus Profile
Lotus
View Profile of Lotus
Posts: 0
Joined: 05/15/2004
Credibility: 0 pts
Re: incompatible code 

Override your reset() function. It is setting it back to its default whenever round is restarted.

From class JumpPad:

/* Reset()
reset actor to initial state - used when restarting level without reloading.
*/
function Reset()
{
JumpVelocity = BACKUP_JumpVelocity;
}



***THIS POST HAS BEEN EDITED***



05/19/05 23:41 Login to rate this user's post!

clear gif
Don't Forget! - Rate users posts to reward or demerit their posts with Credibility!
GameAmp Footer