News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Small Mech addon

Started by VGames, June 05, 2015, 03:18:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VGames

Has anybody ever created usable vehicles in a Doom 3 mod? I was thinking of adding something like this to Doom 3 where u could jump into a mech that was small enough to walk in the same places that the player could. And before it was destroyed the player could jump out before it blew up and killed him. Of course he could exit the mech too if he wanted. It would need a new hud when being used and the primary fire button would fire machine guns and the secondary fire would fire missiles. I was thinking of porting over that mech that was in Quake 4 and then shrinking it down a bit so that it could fit in the Doom 3 maps better. That way it could go where the player can go but at a slower pace. Anybody ever add vehicles?  Am I biting off to much? Should I just back away from this? My mod is fairly difficult by design and I think this would be a nice addition to help out the player here and there.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

The Happy Friar

ETQW & Q4 made up their own vehicle code separate from what Doom 3 has and nobody (that I'm aware of) has made vehicle code from scratch.  Wheeled vehicles can be made with the code inside D3 but it does have some issues (like no collision against certain things).

VGames

Yeah I figured that stuff would be really hard to do in my case. I was hoping somebody had some good code that I could work off of. I do better when I have a base to work with. I learn so much better that way. Oh well, just a pipe dream.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

BielBdeLuna

vehicles are really simple in d3 or any game, you just restrict the player movement and pin the player to the driver seat, then you need to pass the control from the player movement to the vehicle, and make it interpret the control as the movement you desire.

for Mechs I would check q4 as there is one

motorsep

Quote from: BielBdeLuna on June 06, 2015, 08:02:50 AM
vehicles are really simple in d3 or any game, you just restrict the player movement and pin the player to the driver seat, then you need to pass the control from the player movement to the vehicle, and make it interpret the control as the movement you desire.

for Mechs I would check q4 as there is one

So if that's so simple, how come no one implemented them from scratch? (or improved existing ones) Because it's not that simple! :/

VGames

I'm pretty sure adding any kind of vehicle would be difficult. Since I don't have quake 4 anymore I really can't look at its code. Maybe we could all put our heads together and go from there. We could end of with the code needed to pull it off right here in this thread.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

BielBdeLuna

the concept is simple, if no one has implemented it is because no one needed it at the moment, this doesn't make it any more difficult. a vehicle in it's simplest form is a change on how the player moves and behaves. it's a stage in the player code. the models and other stuff it's all there copy and paste, and change it.

VGames

Please supply some code. I'm not that good at starting from scratch.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

BielBdeLuna

you don't have to, take a look on the car already existing in AFEntity.cpp, i bet you could add some characteristics from actors (so it walks, if you take a look in the car, the player gets pinned on a bone, so you would need to create a md5mesh with a bone for the player, and make it walk within a animation as a character would and so on...

VGames

Still out of my league. What you're saying sounds easy but I wouldn't know where to start. Why not give us some serious code that could help everybody with adding vehicles to Doom 3.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

The Happy Friar

The stock doom 3 car is nothing like the code for the vehicles in the other D3 based games.  You can look at the code in the other game's SDK's (so you shouldn't need Q4/ETQW installed to do this). 

VGames

Oh ok. I'll see what I can do. I'll be back with more questions I'm sure.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500