[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Impulse on start

Impulse on start

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Impulse on start

Postby Blackstar1000 » Mon Dec 05, 2011 5:18 am

I'm having some trouble finding a way to start the game with my Impulse 20 activated at launch.
it also reverts when I change levels. Its finally driving me mad as it helps run my camera.

any advice?
Knives out. Catch the mouse. Squash his head. Put him in your mouth.
Blackstar1000
 
Posts: 52
Joined: Mon Sep 13, 2010 5:16 pm

Re: Impulse on start

Postby thorn3001 » Mon Dec 05, 2011 5:36 am

you just have to edit a file called default.cfg, this is in the id1 folder or data folder.


if you use Darkplaces that file is in My Documents/My Games/Darkplaces
Thorn
User avatar
thorn3001
 
Posts: 29
Joined: Tue Jun 28, 2011 6:09 am
Location: Bogotá, Col

Re: Impulse on start

Postby Spirit » Mon Dec 05, 2011 3:13 pm

The better method would be editing the quake.rc (at least I think this is the better approach).
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1037
Joined: Sat Nov 20, 2004 9:00 pm

Re: Impulse on start

Postby Nahuel » Mon Dec 05, 2011 6:56 pm

hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Impulse on start

Postby ceriux » Mon Dec 05, 2011 7:14 pm

why would you call an impulse to start a camera?
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: Impulse on start

Postby Blackstar1000 » Tue Dec 06, 2011 4:05 am

For one, I am using darkplaces.

"Why would you call an impulse to start a camera?" <- Why is a tough one; haha.
Perhaps I am asking incorrectly? My game uses a third person camera. It simply needs to be started every time by typing impulse 20.

If I am going to code this into quake.qc I painfully ask for a more in depth explanation. (I'm an actionscript guy crossing over)

I also want to have any of the stuff I modify be confined to my C:/quake folder and subfolders to allow for easy copy and paste to other computers.
I guess there is no way to call this impulse once automatically from autoexec.cfg or config.cfg?
Knives out. Catch the mouse. Squash his head. Put him in your mouth.
Blackstar1000
 
Posts: 52
Joined: Mon Sep 13, 2010 5:16 pm

Re: Impulse on start

Postby leileilol » Tue Dec 06, 2011 4:18 am

if you're coding a game that uses probably the old crappy albin chase cam you can throw a camera start command on putclientinserver

if not, chase_active 1.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Impulse on start

Postby Blackstar1000 » Tue Dec 06, 2011 7:17 am

No, it's a custom cam that works much like anachronox or mass effect. I'll have to keep working on a fix I guess.
Knives out. Catch the mouse. Squash his head. Put him in your mouth.
Blackstar1000
 
Posts: 52
Joined: Mon Sep 13, 2010 5:16 pm

Re: Impulse on start

Postby ceriux » Tue Dec 06, 2011 8:30 am

why not just call the function somewhere that makes the camera start?
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: Impulse on start

Postby Nahuel » Tue Dec 06, 2011 1:37 pm

why not just call the camera function in "putclientinserver"
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Impulse on start

Postby necros » Tue Dec 06, 2011 3:52 pm

ceriux and nahuel have the right idea i think.

if you're still interested in .rc and .cfg files...
.rc is the only config file hard coded by the engine to run. if you open up pak0.pak, there's a quake.rc file in there and if you open that, you can see it is actually running the exec config.cfg and exec autoexec.cfg files in there.

the reason they are saying to edit that rather than autoexec or config is that almost all players have their own custom autoexecs and configs (for key binds or alias scripts, especially with modern engines) so you don't want to annoy players by either wiping out their binds or forcing them to merge theirs with yours.

by editing the quake.rc file, you can add another exec myconfig.cfg line where you put in all the extra stuff you want for your own mod, without messing with anyone elses.

on top of that, you can even control when your config file is run in relation to command line arguments. the 'stuffcmds' line is where the engine is given all the command line arguments the user used to launch the engine (like +map) so you could always make your mod start on a certain map, for example, regardless of what the user typed as long as you put your command after stuffcmds.
necros
 
Posts: 77
Joined: Thu Dec 16, 2004 10:32 pm

Re: Impulse on start

Postby Blackstar1000 » Wed Dec 07, 2011 3:50 am

Ugh, sorry guys. Thanks again for the advice, I was trying so many things to get this right and it seriously came down to mixing up a TRUE/FALSE in my code.
Knives out. Catch the mouse. Squash his head. Put him in your mouth.
Blackstar1000
 
Posts: 52
Joined: Mon Sep 13, 2010 5:16 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 3 guests