News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Mods > WoD Mod Pod > Ask a Coder

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 25th Jan 2002, 10:25 AM   #1
Call me Erdrik
Arch Mage
 
Call me Erdrik's Avatar
 
Join Date: Nov. 24th, 1999
Location: Spring Hill, FL, USA
Posts: 334
Question k questions about playerInput:

I made a new playerpawn class under tournament player.
This player has a state called pilot(which is called when he picks up a SR_Item, Ill explian that below as its extended.. ) in this state i have : (Im doing this from memory )

event function PlayerInput(float DeltaTime)
{
super.PlayerInput(DeltaTime);

if (bwasforward) Ship.UpAccel(DeltaTime);

}
I have a variable called var SR_MainHull ship
when the player touches the SR_MainHull(new class I coded) which sub classed to SR_Item; the new giveto() function i coded(exactly the same as normal except I added other functions) sets the variable(var SR_MainHull ship) in the player to it self.

The SR_MainHull then goes to a state called 'state running'
a timer sets the player location to the MainHull makes the player colide false (all three of them).
in MainHull the function:

function UpAccel(DeltaTime)
{
local vector Currvelocity;
//I have code here to determine the variable ithrust which
// in the very least is 10. I can't remember it all now Ill post later
currVelocity = (rotation)*ithrust;
// ^ pretty sure if this is right I can't remember to clearly
velocity = CurrVelocity;
ProcessMove(buncha variable I can't remeber);
}

function ProcessMove(buncha variable I can't remeber+newaccel)
{
newaccel = velocity;
smoothmove(can't remember)
}


I know im being a little hazy but Ill correct the stuff when I get home from work....
ingame I can pick it up fine and the location is set properly but when i hit the up key nothing happens.... plus I can't seem to mouse look any...
in the mean time, any ideas?
__________________
Call me Erdrik
-hvErdrik
-Erdrik

*PIMP*
DarkMagic
Boycott Fox!!! Down with the Evil Overlords!
Call me Erdrik is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer