Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Speed Pickup

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> Projects
View previous topic :: View next topic  
Author Message
9svn6



Joined: 30 Jun 2007
Posts: 12
Location: Brockport, NY

PostPosted: Fri Jul 06, 2007 5:31 am    Post subject: Speed Pickup Reply with quote

So i'd like to add a speed pickup to my package I ran across one before but I don't remember where it was. Does anyone know how to code one?
Back to top
View user's profile Send private message Visit poster's website
Hyper



Joined: 24 Jan 2004
Posts: 1227
Location: Middelburg, The Netherlands

PostPosted: Fri Jul 06, 2007 9:28 am    Post subject: Reply with quote

There are many speed / running items already. At my server I use the JTool.JSpeed (From Joss' JTool3)

Aura also has some items that increase speed and Smiley's pack also has one.
_________________
Alter your reality...forever.
Hyper.nl Unreal Services
unreal://hypercoop.tk
Back to top
View user's profile Send private message Visit poster's website
mental-HunteR



Joined: 05 May 2006
Posts: 363
Location: The Netherlands

PostPosted: Fri Jul 06, 2007 11:33 am    Post subject: Reply with quote

I dont think that is what he was asking for, anyways. I never made a speed pickup. However, i do made a alots of boots with airspeed, groundspeed, WaterSpeed and Aircontrol. If you send that to me also, i might firgur out how to make a speed pickup.
_________________
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Cheese



Joined: 30 Mar 2006
Posts: 79
Location: ...YES

PostPosted: Sat Jul 07, 2007 5:38 am    Post subject: Reply with quote

:)

Code:

Class SpeedUp expands Pickup;

First, The Class Declaration.




Code:

var() float speedfactor;

...Then you need a variable for the speed, if you want it to be adjustable.




Code:

State Activated
{
Begin:
PlayerPawn(Owner).GroundSpeed *= SpeedFactor;  //Make you run fast.
PlayerPawn(Owner).ClientMessage("You can run "$SpeedFactor$" Times as fast as usual"); //Tells you how fast you can run.
}

...Now, it's gotta set how fast you run, and tell you how fast you are running.




Code:

State DeActivated
{
Begin:
PlayerPawn(Owner).GroundSpeed=Playerpawn(Owner).Default.GroundSpeed; // Sets your ground speed back to what it was.
}

...And it's gotta turn off the speed boost that when it's deactivated.




Code:

Exec Simulated Function SetMySpeed(Float SpeedAmount)
{
if(SpeedAmount > 10) SpeedAmount = 10; //Makes sure you can't run more than 10 times faster than usual.
SpeedFactor=SpeedAmount; //Sets the Speed Factor.
PlayerPawn(Owner).GroundSpeed=PlayerPawn(Owner).Default.GroundSpeed * SpeedAmount;//Makes you run fast.
PlayerPawn(Owner).ClientMessage("You can run "$SpeedFactor$" Times as fast as usual"); // Tells you how fast you can run.
}
}

...And now, the executable function to change your speed, ingame.




Code:

DefaultProperties
{
SpeedFactor=2
bDisplayableInv=True
Charge=1
bActivatable=True
DrawType=DT_Sprite
Style=Sty_Masked
PickupMessage="You picked up a Speed Up item."
}

...Finally the default properties, then you're done.


Have fun.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> Projects All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group