Accelerating Rockets
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
Accelerating Rockets
In errors tutorial on accelerating rockets, you have to create a new function. Where does this bit go?
- Code: Select all
.float rspeed; // counter for how many times the rocket changes speed
void() RocketSpeedChange =
{
if (self.rspeed < 10) // 10 is the max speed changes
{
self.velocity = self.velocity * 2; // up the speed by 2x
self.rspeed = self.rspeed + 1; // up the counter to tell it to stop
self.nextthink = time + 0.5; // redo this function
}
};
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
-

redrum - Posts: 410
- Joined: Wed Mar 28, 2007 11:35 pm
- Location: Long Island, New York
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest