Nedd help with the Chase cam

Discuss programming topics for the various GPL'd game engine sources.
Post Reply
mofu23
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Nedd help with the Chase cam

Post by mofu23 »

I'm working on an project called PSPikmin that is a quake/kurok clone of the nintendo game Pikmin. I am, however, new to the whole coding ordeal. So for starters, can anyone help me with the chase cam so that when you press a button i goes behind the player.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Nedd help with the Chase cam

Post by Baker »

In the console or a config file like config.cfg or autoexec.cfg
alias +chase_on "chase_active 1"
alias -chase_on "chase_active 0"
bind mouse1 +chase_on
Pressing mouse1 and holding it will put camera behind player, releasing it will go back to normal.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Nedd help with the Chase cam

Post by drm_wayne »

Better make the Chasecam in QC, with chase_active 1 you can look thru brushes and the playermodel "rotates" when looking up/down...
mofu23
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Post by mofu23 »

drm_wayne wrote:Better make the Chasecam in QC, with chase_active 1 you can look thru brushes and the playermodel "rotates" when looking up/down...
how do i put the chasecam
mofu23
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Post by mofu23 »

Baker wrote:In the console or a config file like config.cfg or autoexec.cfg
alias +chase_on "chase_active 1"
alias -chase_on "chase_active 0"
bind mouse1 +chase_on
Pressing mouse1 and holding it will put camera behind player, releasing it will go back to normal.
Okay. i should have been a little bit more specific. In pikmin the player controls captin olimar in third person. the player can move front and back; side to side but the camera doesnt follow him. when you press the button. the camera moves from its position and goes behind the player. Kind of like when you play GTA and you turn the camera while driving a car but as you drive without rotating the camera moves behind the car. something like that but the camera need a button press to go behind.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Nedd help with the Chase cam

Post by Baker »

There are QuakeC chase cam tutorials here:

http://www.inside3d.com/tutorials.php
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Nedd help with the Chase cam

Post by drm_wayne »

Here is a nice chasecam too:

ftp://ftp.fu-berlin.de/pc/games/idgames ... asecam.zip

Needs some changes for your project, but its one of my fav cameras 8)
mofu23
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Post by mofu23 »

drm_wayne wrote:Here is a nice chasecam too:

ftp://ftp.fu-berlin.de/pc/games/idgames ... asecam.zip

Needs some changes for your project, but its one of my fav cameras 8)
How can i add this to Kurok or Quake
drm_wayne
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Nedd help with the Chase cam

Post by drm_wayne »

mofu23 wrote:How can i add this to Kurok or Quake
by looking at the included qc sources and adding it to your own??? :lol:
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

Re: Nedd help with the Chase cam

Post by frag.machine »

mofu23 wrote:
drm_wayne wrote:Here is a nice chasecam too:

ftp://ftp.fu-berlin.de/pc/games/idgames ... asecam.zip

Needs some changes for your project, but its one of my fav cameras 8)
How can i add this to Kurok or Quake
I suggest you first to master Quake modding in the PC, where there are more development resources, engines full of cool features and experienced people to help.
Once you feel comfortable with things like compiling the game code to generate the progs.dat and make simple changes (like toying with the chasecam or weapons behavior), you could try to apply what you learned on the PSP.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
Post Reply