Raised This Month: $32 Target: $400
 8% 

Animation Events


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-04-2016 , 17:41   Animation Events
Reply With Quote #1

Anyone knows where i can find the animation events for view models ( for counter strike 1.6 )
I tried to look it up on google and stuff, but all i could find was the ones for half life...

I'm talking about those events inside the .qc file of the model, which define the muzzle flash and misc sounds of the weapon

Code:
// 7 animation sequence(s)
$sequence "idle" "idle" fps 30 
$sequence "shoot1" "shoot1" fps 30 { event 5001 0 "21" } 
$sequence "shoot2" "shoot2" fps 30 { event 5001 0 "21" } 
$sequence "insert" "insert" fps 30 { event 5004 0 "weapons/m3_insertshell.wav" } 
$sequence "after_reload" "after_reload" fps 30 { event 5004 0 "weapons/m3_pump.wav" } 
$sequence "start_reload" "start_reload" fps 30 
$sequence "draw" "draw" fps 30 { event 5004 11 "weapons/m3_pump.wav" } 
__________________
Depresie is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 12-05-2016 , 09:37   Re: Animation Events
Reply With Quote #2

event 5004 is literally play sound. The number after the event nš is the frame to execute and the next one is the filename. It should be the same with event 5001 (muzzleflash) but sadly I don't know the parameters since I haven't work with them. I suppose the number specifies which muzzleflash effect to show.
__________________
gabuch2 is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-05-2016 , 09:48   Re: Animation Events
Reply With Quote #3

Got it about the sounds... but i sitll have no idea how the sprites are working
__________________
Depresie is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-05-2016 , 14:35   Re: Animation Events
Reply With Quote #4

For HL: https://github.com/ValveSoftware/hal....cpp#L335-L376
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode