Morphing player into a vehicle
Morphing player into a vehicle
Hello Im a new here to modding,
In my testing project i wanted to make some vehicle, I already checked in AOW how it works but i don't get it . . .
Like why there is a MD3 models, How to morph a player, and how it works!
In my testing project i wanted to make some vehicle, I already checked in AOW how it works but i don't get it . . .
Like why there is a MD3 models, How to morph a player, and how it works!
Re: Morphing player into a vehicle
I hate to be that guy, but this is a big bite for a beginner. If you really want to go this route, though, then I neither can or will stop you.
A playermorph is a playerpawn just like the regular player actor, but there are special rules for their function, which I recommend that you look up on the zdoom wiki.
To make something actually morph you need to have a powermorph actor defined for that actor as well. You also need the naming for these things to be correct for it to work.
Ex:
actor Vehicle1 : playerpawn {} //contains whatever you want
actor PowerVehicle1 : PowerMorph {} //You just append the actor name to the word Power. When this item is given to a player, it morphs to the given actor.
Please take into concideration that I have not put what these actors actually need into their definitions. I recommend that you read about this on the zdoom wiki, all the parameters, rules and so on.
Now, AOW is a shit thing to open up and look into, because it's rather complicated and made on a higher level than beginners can be expected to understand. I would recommend hunting for examples with a more simple internal construction.
A playermorph is a playerpawn just like the regular player actor, but there are special rules for their function, which I recommend that you look up on the zdoom wiki.
To make something actually morph you need to have a powermorph actor defined for that actor as well. You also need the naming for these things to be correct for it to work.
Ex:
actor Vehicle1 : playerpawn {} //contains whatever you want
actor PowerVehicle1 : PowerMorph {} //You just append the actor name to the word Power. When this item is given to a player, it morphs to the given actor.
Please take into concideration that I have not put what these actors actually need into their definitions. I recommend that you read about this on the zdoom wiki, all the parameters, rules and so on.
Now, AOW is a shit thing to open up and look into, because it's rather complicated and made on a higher level than beginners can be expected to understand. I would recommend hunting for examples with a more simple internal construction.
Re: Morphing player into a vehicle
Ok Thank you very much!
So MD3 models are useless for me?(for morphing)

So MD3 models are useless for me?(for morphing)
Re: Morphing player into a vehicle
Funny how of all things he said you picked apart the models to be the important thing...AqwerfNet wrote:Ok Thank you very much!![]()
So MD3 models are useless for me?(for morphing)
You need nothing but code to do the morphing right. Anything else is extras. Sprites, models etc.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
Re: Morphing player into a vehicle
Oh Really? Then thank you :3
Edit:
But when my vehicle is flying, it slide and accumulate speed, how to fix that?
And i can't go up or down with "fly up" and "fly down"
Edit:
But when my vehicle is flying, it slide and accumulate speed, how to fix that?

And i can't go up or down with "fly up" and "fly down"

Re: Morphing player into a vehicle
I hate to doing that, But UP,
I can't figure whats the problem is about " slide and accumulate speed" :(
And about "fly up" and fly down" with a morph, i have no clues . . .
Also here is my code : http://pastebin.com/WqAjYrNn
I can't figure whats the problem is about " slide and accumulate speed" :(
And about "fly up" and fly down" with a morph, i have no clues . . .
Also here is my code : http://pastebin.com/WqAjYrNn
Re: Morphing player into a vehicle
I'm not an expert on flying player classes, but my best guess would be:
1. Try removing the floatspeed property from the shipbase actor. This is probably causing the weird speed accumulation you describe, although I could be terribly wrong on this one.
2. Don't defien the same property twice, as you did with player.jumpz in the shipbase actor. This isn't only bad practice, it might even make your mod break.
3. Also, IIRC player.jumpz also determines the vertical flying movement speed of a flying actor. Change that value to a positive number in order to be able to fly up and down with the buttons.
I give no guarantees that any of this will work, as I didn't test any of it. Please let us know if it did though, it would make for good research on actor acceleration.
1. Try removing the floatspeed property from the shipbase actor. This is probably causing the weird speed accumulation you describe, although I could be terribly wrong on this one.
2. Don't defien the same property twice, as you did with player.jumpz in the shipbase actor. This isn't only bad practice, it might even make your mod break.
3. Also, IIRC player.jumpz also determines the vertical flying movement speed of a flying actor. Change that value to a positive number in order to be able to fly up and down with the buttons.
I give no guarantees that any of this will work, as I didn't test any of it. Please let us know if it did though, it would make for good research on actor acceleration.
Re: Morphing player into a vehicle
Okey , I tried what you said:
1) Change nothing,
2)Same
3)Same
Well, Its very weird ...
1) Change nothing,
2)Same
3)Same
Well, Its very weird ...
Re: Morphing player into a vehicle
In that case I'm completely clueless as to why it acts as it does.
Is there anyone else with insight in this?
Is there anyone else with insight in this?
Re: Morphing player into a vehicle
Okay I FINALLY FOUND!!!!!
Erm. . . So if you make a Flying Morph, Don't Forget To put SetPlayerProperty (0, 1, 3) In Decorate Spawn States....
Erm. . . So if you make a Flying Morph, Don't Forget To put SetPlayerProperty (0, 1, 3) In Decorate Spawn States....