Drive Mode
Drive Mode
Those who read Tammo_Korsai's topic here would be aware that the PS1 version of Warzone had a driving mode in which you could directly command a droid. I've made a new topic so we could discuss this.
I had a look at /src/drive.c and it appears that most of the code required for the drive mode already exists. Is this sufficient for implementing the drive mode into the game? Can the current camera system support this, and is driveControl(DROID *psDroid)'s control conditionals sufficient enough to control the driving mode without conflicting with other keybindings?
I think this would be a good opportunity to get some thought from devs more familiar with the game structure.
I had a look at /src/drive.c and it appears that most of the code required for the drive mode already exists. Is this sufficient for implementing the drive mode into the game? Can the current camera system support this, and is driveControl(DROID *psDroid)'s control conditionals sufficient enough to control the driving mode without conflicting with other keybindings?
I think this would be a good opportunity to get some thought from devs more familiar with the game structure.
Last edited by sicanjal on 27 Nov 2006, 17:34, edited 1 time in total.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: Drive Mode
probably you need to add a few functions to tell whether a droid is player-controlled/a droid is a follower of player-controlled droid to avoid AI state/order conflicts,or just re-enabled the ones got commented out with '#INLINED',this will definitely be a rather big change,since almost all AI state/order related functions need a 'isDroidPlayerControlled()' bool check before proceeding to its 'normal functions' imo.Besides,we need to figure out how to treat a player-controlled droid in mp games,treat it as a 'normal' AI controlled unit with very frequent order rate or an entirely new type of net info.
just my 2 cents.
just my 2 cents.
tasks postponed until the trunk is relatively stable again.
-
- Inactive
- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Drive Mode
That should be "still exists". Most of the PSX code was removed when the project was still on Berlios. Unfortunately, the SVN repository isn't publicly available anymore, so you can't check that code...most of the code required for the drive mode already exists
We want information... information... information.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Drive Mode
Uh... If that was all PSX code (in #ifdef PSX parts) then it is probably gone by now. ::)
- lav_coyote25
- Professional
- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: Drive Mode
would it not still be in the original source files?? ???
"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Drive Mode
Sure. And as we use Subversion those stuff Christian's patches removed (which I commited) could be easily restored.
-
- Inactive
- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Drive Mode
Yes, and it was removed in the Berlios SVN, which isn't publicly accessible anymore. My current patches removed just some leftover stuff, most was long gone.lav_coyote25 wrote: would it not still be in the original source files?? ???
Of course the original source also contains the code, but isn't in a very usable state.
We want information... information... information.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Drive Mode
So someone should get BerliOS up again, but leave the big fat note that it is discontinued...
Kim, could you do that?
We probably need the SVN and the mailinglist archives might also be useful.
Kim, could you do that?
We probably need the SVN and the mailinglist archives might also be useful.
-
- Inactive
- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Drive Mode
Or we could combine both repositories, I have a local copy of the Berlios SVN to look into that, but it's not that easy. I thought about the following steps: Take the Berlios SVN, then move everything about to get the initial layout of the gna.org one, and then just reapply all revisions. The problem is keeping the dates and usernames.
But yes, (read-only) access to the Berlios SVN and mailing list archives sounds good. By the way, to get the actual patches on the -commit list, you need to file a support request with gna.org.
But yes, (read-only) access to the Berlios SVN and mailing list archives sounds good. By the way, to get the actual patches on the -commit list, you need to file a support request with gna.org.
We want information... information... information.
- lav_coyote25
- Professional
- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: Drive Mode
DevUrandom wrote: So someone should get BerliOS up again, but leave the big fat note that it is discontinued...
Kim, could you do that?
We probably need the SVN and the mailinglist archives might also be useful.
ok did that...
"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
Re: Drive Mode
IIRC the code remapped camera rotation controls to throttle and rotation of the chosen unit; it seemed to cause a temporary override of navigational AI when input to those controls was detected. If no controls were used for around two seconds the AI would kick in again. Weapon behaviors were unaffected but obviously locked weapons (howies, mortars) would have a tough time as user input would knock them out of firing position. Also, the cursor kept running allowing you to call targets and order construction but it was tricky to say the least (trying to pick out a specific hardpoint to demolish from a row was always fun ;D )
IMHO being an old lover of those rare Battlezone-type "action RTS" games I'd love it if this became a reality and it really adds to small- and mid-scale online battles but the basic implementation of this form of gameplay in PSX WZ was primitive to say the least. It'd need a lot of fine-tuning and feature-addition in its own right to become really useable, a huge requirement in code-hours
IMHO being an old lover of those rare Battlezone-type "action RTS" games I'd love it if this became a reality and it really adds to small- and mid-scale online battles but the basic implementation of this form of gameplay in PSX WZ was primitive to say the least. It'd need a lot of fine-tuning and feature-addition in its own right to become really useable, a huge requirement in code-hours