Forum

Nedd help with the Chase cam

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Nedd help with the Chase cam

Postby mofu23 » Wed Apr 17, 2013 10:30 pm

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.
User avatar
mofu23
 
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Postby Baker » Wed Apr 17, 2013 10:43 pm

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 ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Nedd help with the Chase cam

Postby drm_wayne » Thu Apr 18, 2013 11:58 am

Better make the Chasecam in QC, with chase_active 1 you can look thru brushes and the playermodel "rotates" when looking up/down...
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Nedd help with the Chase cam

Postby mofu23 » Sat Apr 20, 2013 1:56 am

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
User avatar
mofu23
 
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Postby mofu23 » Tue Apr 23, 2013 10:24 pm

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.
User avatar
mofu23
 
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Postby Baker » Wed Apr 24, 2013 4:50 am

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 ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Nedd help with the Chase cam

Postby drm_wayne » Wed Apr 24, 2013 11:58 am

Here is a nice chasecam too:

ftp://ftp.fu-berlin.de/pc/games/idgames2/quakec/misc/chasecam.zip

Needs some changes for your project, but its one of my fav cameras 8)
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Nedd help with the Chase cam

Postby mofu23 » Thu May 09, 2013 9:57 pm

drm_wayne wrote:Here is a nice chasecam too:

ftp://ftp.fu-berlin.de/pc/games/idgames2/quakec/misc/chasecam.zip

Needs some changes for your project, but its one of my fav cameras 8)

How can i add this to Kurok or Quake
User avatar
mofu23
 
Posts: 9
Joined: Thu Mar 14, 2013 10:11 pm
Location: That one place

Re: Nedd help with the Chase cam

Postby drm_wayne » Thu May 09, 2013 10:16 pm

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:
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: Nedd help with the Chase cam

Postby frag.machine » Fri May 10, 2013 1:31 am

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

ftp://ftp.fu-berlin.de/pc/games/idgames2/quakec/misc/chasecam.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)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest