[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/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 - removing body parts when shot

removing body parts when shot

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

removing body parts when shot

Postby thommoboy » Fri Feb 10, 2012 11:33 am

this could quite possibly be the hardest thing i have wanted to do and i know nzp and l4q have done it but how is it done? for psp i might add so no darkplaces addons
thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby Jukki » Fri Feb 10, 2012 12:08 pm

you need to make hte bodie parts as separated entities and then code it to follow the body
Jukki
 
Posts: 214
Joined: Wed Apr 07, 2010 4:59 am

Re: removing body parts when shot

Postby gnounc » Fri Feb 10, 2012 7:29 pm

Just create alternate models with body parts missing and swap them out when shot.
my
gnounc's
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: removing body parts when shot

Postby thommoboy » Fri Feb 10, 2012 10:42 pm

yeah but how would you change models?
thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby Ghost_Fang » Fri Feb 10, 2012 11:49 pm

when you want to change the model, just call setmodel(entity, "progs/model.mdl");
And L4Q has no dismemberment or model switching, if you get a headshot it plays a separate dying animation, one in which the head is shrunk to near nothing and tucked inside the shoulders/neck. Aren't we sneaky? :P
Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Re: removing body parts when shot

Postby frag.machine » Sat Feb 11, 2012 1:32 am

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: removing body parts when shot

Postby thommoboy » Sat Feb 11, 2012 1:35 am

yeah but how do i change it to the arm when the player shoots the arm or the leg when he shoots the leg?
thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby leileilol » Sat Feb 11, 2012 1:39 am

The old "Severed" QC patch does it by making new frames for player.mdl that just is a pain frame sequence with a limb missing. It'll quickly use up all the 256 frames though, unless you had a frame limit raised in the protocol you can do more dismemberment variancy.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: removing body parts when shot

Postby thommoboy » Sat Feb 11, 2012 1:42 am

yeah i got it working but its

setmodel(self, "progs/Necromorph.mdl");
thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby thommoboy » Sat Feb 11, 2012 1:48 am

thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby Arkage » Sat Feb 11, 2012 2:23 am

Your going to have to work out that math sadly. Work out the offsets from their origin.
User avatar
Arkage
 
Posts: 66
Joined: Thu Nov 19, 2009 4:17 pm

Re: removing body parts when shot

Postby Ghost_Fang » Sat Feb 11, 2012 5:01 am

Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Re: removing body parts when shot

Postby thommoboy » Sat Feb 11, 2012 6:37 am

how would i do the trace line thingy XD like find its arm?
thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby thommoboy » Sat Feb 11, 2012 6:43 am

if i give you the mdl can you code according to it just so i can know what to do for others?
thommoboy
 
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: removing body parts when shot

Postby ceriux » Sat Feb 11, 2012 7:01 am

it would be cool to see a mod which helps you find cordinants sorta like the one for the vwep mod.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 2 guests