[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/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/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/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/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 - Some questions for my singleplayer mod...

Some questions for my singleplayer mod...

Post tutorials on how to do certain tasks within game or engine code here.

Moderator: InsideQC Admins

Re: Some questions for my singleplayer mod...

Postby Daya » Mon Jun 17, 2013 7:57 pm

Daya
 
Posts: 12
Joined: Mon May 13, 2013 9:21 am

Re: Some questions for my singleplayer mod...

Postby gnounc » Tue Jun 18, 2013 12:31 am

my
gnounc's
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: Some questions for my singleplayer mod...

Postby Daya » Tue Jun 18, 2013 9:00 am

I put your code just before the axe code, it compiled nicely (I think), I started quake, tried to go to the start map, but I got this instead:

http://image.noelshack.com/fichiers/201 ... rerror.png

Man, this laser axe stuff is more complicated than it should.
Daya
 
Posts: 12
Joined: Mon May 13, 2013 9:21 am

Re: Some questions for my singleplayer mod...

Postby gnounc » Tue Jun 18, 2013 10:54 am

That I dont know anything about I'm afraid.
my
gnounc's
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: Some questions for my singleplayer mod...

Postby r00k » Tue Jun 18, 2013 1:50 pm

What that error means is that you modified the defs.qc file. :O

Anytime you add your own variables, it's best to add them at the BOTTOM of defs.qc or make a complete new file, ie defs2.qc (and add it in progs.src below defs.qc)...
r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Some questions for my singleplayer mod...

Postby frag.machine » Tue Jun 18, 2013 1:57 pm

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: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: Some questions for my singleplayer mod...

Postby r00k » Tue Jun 18, 2013 2:24 pm

r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Some questions for my singleplayer mod...

Postby Daya » Tue Jun 18, 2013 3:46 pm

Daya
 
Posts: 12
Joined: Mon May 13, 2013 9:21 am

Re: Some questions for my singleplayer mod...

Postby r00k » Tue Jun 18, 2013 4:16 pm

ok lemme look at your code (wow that dl was 10mbs!) :P
ill try to fix the axe/rail the way u want all charged up maybe a finer incremental increase like +1 faster once hit the next attack comes 0.5 seconds later?

find this in weapons.qc
void LightningDamage (self.origin, trace_endpos + v_forward*4, self, 40);

and delete it.

then in player.qc all the w_firerails change back to w_fireaxe and u can recompile where u last left off.

ill post a fix to the axe/laser to include your charge code. :D
r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Some questions for my singleplayer mod...

Postby Daya » Tue Jun 18, 2013 4:51 pm

Just as a little reminder, I don't want it to be a continuous laser, but a one-shot laser like the railgun. And I use the lightning bolt as a placeholder until I do a flat model to materialize the laser (since I don't think darkplaces includes a transparent flat laser model).
Daya
 
Posts: 12
Joined: Mon May 13, 2013 9:21 am

Re: Some questions for my singleplayer mod...

Postby r00k » Tue Jun 18, 2013 5:26 pm

right,
but if u hold the fire button down to increase the range its firing at each increment in range. Do u just want it to build up to max distance then "discharge"?

oof the reason u have constANT firing of the axe is u added w_fireaxe in playerprethink ! :P
Last edited by r00k on Tue Jun 18, 2013 5:48 pm, edited 1 time in total.
r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: Some questions for my singleplayer mod...

Postby Daya » Tue Jun 18, 2013 5:33 pm

If the player releases the firebutton during the charge, the laser will be shot given the charge's value during release.

If possible, I'd like for the charge to hold when it reaches its maximum value (something a bit below the original lightning bolt's maximum range). If not, the laser must be fired when i reaches its maximum value.
Daya
 
Posts: 12
Joined: Mon May 13, 2013 9:21 am

Re: Some questions for my singleplayer mod...

Postby Daya » Thu Aug 08, 2013 4:19 pm

Bumping this thread (hoping I'm not getting warnings for this...) because I decided to continue doing my singleplayer mod (Also this thread should be moved to another location, like "Programming Help").

Anyway, I'm still looking for a way to make my charge weapon a thing : For reminder, it replaces the axe: under a short value of charge when releasing the fire button, the code executes the W_FireAxe code. Above said value, a Q3 Railgun-like laser will be shot, but not an hitscan one (aside from the fact it's instantaneous [i can use the lightning model as a placeholder]) as its length depends from the charge value at the time the firebutton has been released.

I'm also still looking for a way to "port" Team Fortress' . I have the sourcecode of , but looking at HEAVY.qc , I can't understand it.
Daya
 
Posts: 12
Joined: Mon May 13, 2013 9:21 am

Previous

Return to Programming Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest