models then what?
Moderator: Moderators
Re: models then what?
oh... sorry about that. that was before I learned that xyz could be symbolized as x_axis, y_axis, z_axis, instead of 1, 2, 3. the xyz axis portions are actually the second parameter to the move/turn/spin functions. 123 is equivalent to xyz.
I told you it needed some cleaning up
I told you it needed some cleaning up
Re: models then what?
Are things rotating on or moving in axes (fun fact: i had no idea what the plural of axis was..)?
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2700
- Joined: 25 Aug 2004, 13:31
Re: models then what?
Axes apparently
Re: models then what?
They're rotating if there is a Turn(blah blah blah) command. Moving if there is a Move(blah blah blah) command. I seriously urge you to either modify heavily until you know what each function/line does, or create your own from scratch using lots of other scripts as a reference. Trial and error teaches you quicker than someone telling you.oksnoop2 wrote:Are things rotating on or moving in axes (fun fact: i had no idea what the plural of axis was..)?
Re: models then what?
Turn( leftfoot, x_axis, -1, 2 )
Turn( leftthigh, x_axis, 1, 2 )
what do the numbers mean?
Turn( leftthigh, x_axis, 1, 2 )
what do the numbers mean?
Re: models then what?
Turn the leftfoot piece -1 unit on the x-axis speed 2 units.oksnoop2 wrote:Turn( leftfoot, x_axis, -1, 2 )
Turn( leftthigh, x_axis, 1, 2 )
what do the numbers mean?
Re: models then what?
Ok this whole walking business is just eluding me. I thought that maybe it was my model so i made another one. It's just scooting around the map.
http://www.megaupload.com/?d=N4I9XD5G
That's the mod in it's current state. i'm happy how the model turned out but it's still not animated.
If someone wanted to look at it. It's at the above link.
EDIT:
After looking at the script again, i realized that i had a huge mistake. So i fixed that. Still does not work though. Here are the two altered lua files.
http://pastebin.com/m3b6085f4 That's the lua found in the scripts folder.
http://pastebin.com/m613430b8 That's the lua found in the units folder.
http://www.megaupload.com/?d=N4I9XD5G
That's the mod in it's current state. i'm happy how the model turned out but it's still not animated.
If someone wanted to look at it. It's at the above link.
EDIT:
After looking at the script again, i realized that i had a huge mistake. So i fixed that. Still does not work though. Here are the two altered lua files.
http://pastebin.com/m3b6085f4 That's the lua found in the scripts folder.
http://pastebin.com/m613430b8 That's the lua found in the units folder.
Re: models then what?
FLOZi we love your basic game making pack... but for beginners it would be nice if you included some very simple tank with Lua scripts and everything it needs to work.
We would appreciate allot!
We would appreciate allot!
Re: models then what?
Still (slowly ) working on the documentation for the 'B' mod, which is incredibly incomplete atm.Masse wrote:FLOZi we love your basic game making pack... but for beginners it would be nice if you included some very simple tank with Lua scripts and everything it needs to work.
We would appreciate allot!
Though actual examples of unit scripts would probably come on in 'C'. There is of course my stumpy example around somewhere.
Guess I should write up a post for a sticky thread containing this stuff. If only the Games & Mods sections had a resources subforum like Art and Mapping. Neddie.
Re: models then what?
FLOZi wrote:Turn the leftfoot piece -1 unit on the x-axis speed 2 units.oksnoop2 wrote:Turn( leftfoot, x_axis, -1, 2 )
Turn( leftthigh, x_axis, 1, 2 )
what do the numbers mean?
What is a unit?
Re: models then what?
So far as Turn is concerned, the units are in radians. Not sure if speed is rads per second or rads per gameframe.oksnoop2 wrote:FLOZi wrote:Turn the leftfoot piece -1 unit on the x-axis speed 2 units.oksnoop2 wrote:Turn( leftfoot, x_axis, -1, 2 )
Turn( leftthigh, x_axis, 1, 2 )
what do the numbers mean?
What is a unit?
Re: models then what?
--signals
local SIG_AIM = 2
what's that mean?
local SIG_AIM = 2
what's that mean?
Re: models then what?
Code: Select all
#define SIG_AIM 2
AimWeapon1(yadda) {
set-signal-mask SIG_AIM; // assigns bitmask of SIG_AIM to this function
signal SIG_AIM; // kills what ever functions match this bitmask
}