[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/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 - DPM, framegroups, and sounds.

DPM, framegroups, and sounds.

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

DPM, framegroups, and sounds.

Postby Ace12GA » Sun Jan 29, 2012 5:38 pm

I am a 3D modeler first, coder second, mapper 3rd, and 2d guy very dead last. I have spent a lot of time over the years working with the Half Life engine, and the Unreal engine. I love the feature of the Half Life engine (gold source, source) to apply a sound call inside the model file definition. So when you define the animation smd, you specify sound calls on specific frames within that animation smd. Its really great, and allows the artist to time the sound playback, as opposed to the coder. Also attaching sprite calls, and other attachments for spawning effects, is pretty awesome too

I recently started using the DPM model format, because I literally have 100's of models for the Half Life engine, and the idea of recompiling the smd files into a dpm with little modification is just great for me; it means no change to my art path. Take that a step further with a frame group definition, and I am a happy guy from the code too. Very easy to playback animations. :D

So I have these great view weapon models, with nice reload animations.. and I have no sounds for the reload. I am toying with making a single wav file that is timed to the model animation, and contains the right sounds, however I would love to call individual sounds from code based on the frame the model is at within the frame group. Does anyone have any idea how I can grab the current model frame, while playing a sequence through a frame group? I'm not looking to modify the dpm format, just how I can find the current frame within the frame group while it is playing back.

Cheers.
Ace12GA
 
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: DPM, framegroups, and sounds.

Postby leileilol » Sun Jan 29, 2012 6:05 pm

Ace12g.......OH WAIT IS THIS GONNA BE SOME ACTION DARKPLACES!!!!!?

In Darkplaces you'll have to do that by csqc for local weapon sounds, and you can't get specific frames in a framegroup. It isn't exactly like a sequence like a hl smd's is unfortunately. I'd use IQMs and make them go through some hardcoded CSQC sequence and have some .think triggered sound effects. Not as elegant as HL smd sequence actions but close enough...
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: DPM, framegroups, and sounds.

Postby Ace12GA » Sun Jan 29, 2012 10:05 pm

Well, not that I am going to release anything, but if I were to, I don't think I would attach the "Action" name to it. I am however making use of some unused AHL, AUT, and AHL2 art assets. Thanks for the tip. I am actually still trying to figure out how to handle the view model from csqc; currently it is still being handled by the server side. Any tips on passing the attack impulses to csqc to handle view models would be great.

What I have currently is vanilla Quake with 6 shiny new weapons. I modified some of the monsters, but overall, its still vanilla quake essentially. I have coded a simple hud that I am happy with, and I am hoping to do some lan testing with DM next weekend. My goal is to make a simple and fun DM game, akin to old Action Quake.


Ace12GA
 
Posts: 56
Joined: Sat Jan 28, 2012 12:08 am

Re: DPM, framegroups, and sounds.

Postby ceriux » Wed Feb 01, 2012 4:34 am

look in the qc. i think they do similar things with the player model in player.qc specifically the nailgun or lightning gun code. i maybe wrong , but i don't think i am. just call your sound when that frame is called in there.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 2 guests