• Weapon - Playing a sequence, not an animation.
    28 replies, posted
I never would have needed help with this in the past, but I have forgotten how to do this. I created a model, but the animations don't play ingame. In Hammer Editor, for the first version, the sequences play but the animations don't, so I would like to know how to play the sequences ingame. I can't guarantee it will fix my problem, but for other people who might want to know, this thread could help. Please inform. Thank you! [editline]3rd May 2013[/editline] What am I, dead? I'm being ignored quicker than a dust particle here...
If it isn't possible, then just say that!
You made a model in Hammer?
[QUOTE=Ericson666;40520248]You made a model in Hammer?[/QUOTE] What? No, I made it in 3Ds max... for source, which means I can use it in, oh, guess what, HAMMER! ...:downs: [editline]3rd May 2013[/editline] With what I said I meant that the animations PLAY or DON'T PLAY, in Hammer, fine (as prop_dynamic)... In game, however, they do not play at all. That doesn't matter, what matters is the question: How do I make a Weapon play a Sequence, not an ACT, and have it stop when the sequence is over, even in lag, with Lua? [editline]3rd May 2013[/editline] I would humor you, but I am seriously looking for help here! The animations and sequences play perfectly in Hammer, in Model Viewer, and other Source SDK tools, but they don't play in-game! I want to know how to fix this, and make the animations work in-game!
What are you trying to do exactly? Weapon, ent? Altrough, i think LookupSequence could work
What I think he means is a function similar to :SetSequence() but for the [i]Weapon[/i] class. If that's what you're looking for, unfortunately I don't believe there is one. Awhile ago I had a project and I asked the same question and nobody ever answered with helpful information.
Oh. self.Owner:GetViewModel():ResetSequence() is what you are looking for. But I highly recommend you adding ACT_VM_* stuff to your model, since ResetSequence is glitchy in multiplayer with weapons.
[QUOTE=Matsilagi;40520955]What are you trying to do exactly? Weapon, ent? Altrough, i think LookupSequence could work[/QUOTE] Uhm, I'm trying to get the weapon to play my custom view model's animations? The "Animations" as they are called, such as "ACT_PRIMARYATTACK", don't work, I want to know how to play the sequence instead, like "shoot". [QUOTE=Robotboy655;40524102]Oh. self.Owner:GetViewModel():ResetSequence() is what you are looking for. But I highly recommend you adding ACT_VM_* stuff to your model, since ResetSequence is glitchy in multiplayer with weapons.[/QUOTE] Well, I'm not programming this weapon for Multiplayer, but that is good to know. It doesn't currently work in Multiplayer, anyways, the variables don't sync over networking. [editline]4th May 2013[/editline] But, if ACT_VM_PRIMARYATTACK is more likely to work, perhaps I need to rename the acts, then? I believe I mean Activities, not Animations... for all of what I've said. However, in the .qc file, sequences are made with $sequence <Name> <SMD File Location> <Options...> and Activities are made with $animation <name, like ACT_IDLE> <SMD File Location>; Please correct me if I'm wrong... [editline]4th May 2013[/editline] And reset sequence? The problem is the weapon just won't play any ACT_ animations! It doesn't draw, it doesn't idle, it doesn't do anything but sit there in the gun pose, but I did compile it with animations... Here is the first .qc file I used: [code]$modelname "weapons\v_HeliGun.mdl"$scale 1.0 $cdmaterials "models" $body "Body" "heligun\HeliGunReference.SMD" $sequence "idle" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\idle1.SMD" rotate 90 fps 20 ACT_IDLE 1 $sequence "shoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire.SMD" rotate 90 fps 42 ACT_PRIMARYATTACK 1 $sequence "chargedshoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire2.SMD" rotate 90 fps 28 ACT_SECONDARYATTACK 1 $sequence "empty" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\dryfire.SMD" rotate 90 fps 30 ACT_DRYFIRE 1 $sequence "draw" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\draw.SMD" rotate 90 fps 20 ACT_DRAW 1 $sequence "lower" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lower.SMD" rotate 90 fps 30 ACT_LOWER 1 $sequence "lowered" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lowered.SMD" rotate 90 fps 15 ACT_LOWERIDLE 1 $sequence "tocombat" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\tocombat.SMD" rotate 90 fps 15 ACT_RAISE 1 $sequence "recharge" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD" rotate 90 fps 60 ACT_RECHARGE 1 $surfaceprop "metal" $attachment "muzzle" "HeliMuzzle" 0.00 0.00 0.00 rotate 0 0 0 $attachment "1" "ValveBiped.eject" 0.00 0.00 0.00 rotate 0 0 0[/code] Here is the final, and current .qc file I used in an effort to fix this glitch, it did not fix it at all: [code]$modelname "weapons\v_HeliGun.mdl" $scale 1.0 $cdmaterials "models" $body "Body" "heligun\HeliGunReference.SMD" $sequence "idle" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\idle1.SMD" rotate 90 fps 20 ACT_IDLE 1 $sequence "shoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire.SMD" rotate 90 fps 42 ACT_PRIMARYATTACK 1 $sequence "chargedshoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire2.SMD" rotate 90 fps 28 ACT_SECONDARYATTACK 1 $sequence "empty" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\dryfire.SMD" rotate 90 fps 30 ACT_DRYFIRE 1 $sequence "draw" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\draw.SMD" rotate 90 fps 20 ACT_DRAW 1 $sequence "lower" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lower.SMD" rotate 90 fps 30 ACT_LOWER 1 $sequence "lowered" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lowered.SMD" rotate 90 fps 15 ACT_LOWERIDLE 1 $sequence "tocombat" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\tocombat.SMD" rotate 90 fps 15 ACT_RAISE 1 $sequence "recharge" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD" rotate 90 fps 60 ACT_RECHARGE 1 $animation "ACT_IDLE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\idle1.SMD" $animation "ACT_PRIMARYATTACK" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire.SMD" $animation "ACT_SECONDARYATTACK" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire2.SMD" $animation "ACT_DRYFIRE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\dryfire.SMD" $animation "ACT_DRAW" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\draw.SMD" $animation "ACT_LOWER" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lower.SMD" $animation "ACT_LOWERIDLE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lowered.SMD" $animation "ACT_RAISE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\tocombat.SMD" $animation "ACT_RECHARGE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD" $surfaceprop "metal" $attachment "muzzle" "HeliMuzzle" 0.00 0.00 0.00 rotate 0 0 0 $attachment "1" "ValveBiped.eject" 0.00 0.00 0.00 rotate 0 0 0[/code]
[QUOTE]"E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD"[/QUOTE] [QUOTE]"E:\steam\steamapps\gordonfuxalyx"[/QUOTE] [QUOTE]"gordonfuxalyx"[/QUOTE]
Yeah, you don't like that? It replaces my real name, which I shall never share!!! [editline]4th May 2013[/editline] On top of that, please note that I did make my account name 6 years ago, when I was 12... I really am tired of this title I have... "I GOT BRAIN DAMAGE BECAUSE I'M AN IDIOT" ... It's backwards, you see, it should say "I'M AN IDIOT BECAUSE I GOT BRAIN DAMAGE" ... I didn't pay for that title, nor did I ask for it... someone else decided to give my the title.
[QUOTE=luavirusfree;40528119]Uhm, I'm trying to get the weapon to play my custom view model's animations? The "Animations" as they are called, such as "ACT_PRIMARYATTACK", don't work, I want to know how to play the sequence instead, like "shoot". Well, I'm not programming this weapon for Multiplayer, but that is good to know. It doesn't currently work in Multiplayer, anyways, the variables don't sync over networking. [editline]4th May 2013[/editline] But, if ACT_VM_PRIMARYATTACK is more likely to work, perhaps I need to rename the acts, then? I believe I mean Activities, not Animations... for all of what I've said. However, in the .qc file, sequences are made with $sequence <Name> <SMD File Location> <Options...> and Activities are made with $animation <name, like ACT_IDLE> <SMD File Location>; Please correct me if I'm wrong... [editline]4th May 2013[/editline] And reset sequence? The problem is the weapon just won't play any ACT_ animations! It doesn't draw, it doesn't idle, it doesn't do anything but sit there in the gun pose, but I did compile it with animations... Here is the first .qc file I used: [code]$modelname "weapons\v_HeliGun.mdl"$scale 1.0 $cdmaterials "models" $body "Body" "heligun\HeliGunReference.SMD" $sequence "idle" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\idle1.SMD" rotate 90 fps 20 ACT_IDLE 1 $sequence "shoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire.SMD" rotate 90 fps 42 ACT_PRIMARYATTACK 1 $sequence "chargedshoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire2.SMD" rotate 90 fps 28 ACT_SECONDARYATTACK 1 $sequence "empty" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\dryfire.SMD" rotate 90 fps 30 ACT_DRYFIRE 1 $sequence "draw" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\draw.SMD" rotate 90 fps 20 ACT_DRAW 1 $sequence "lower" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lower.SMD" rotate 90 fps 30 ACT_LOWER 1 $sequence "lowered" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lowered.SMD" rotate 90 fps 15 ACT_LOWERIDLE 1 $sequence "tocombat" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\tocombat.SMD" rotate 90 fps 15 ACT_RAISE 1 $sequence "recharge" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD" rotate 90 fps 60 ACT_RECHARGE 1 $surfaceprop "metal" $attachment "muzzle" "HeliMuzzle" 0.00 0.00 0.00 rotate 0 0 0 $attachment "1" "ValveBiped.eject" 0.00 0.00 0.00 rotate 0 0 0[/code] Here is the final, and current .qc file I used in an effort to fix this glitch, it did not fix it at all: [code]$modelname "weapons\v_HeliGun.mdl" $scale 1.0 $cdmaterials "models" $body "Body" "heligun\HeliGunReference.SMD" $sequence "idle" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\idle1.SMD" rotate 90 fps 20 ACT_IDLE 1 $sequence "shoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire.SMD" rotate 90 fps 42 ACT_PRIMARYATTACK 1 $sequence "chargedshoot" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire2.SMD" rotate 90 fps 28 ACT_SECONDARYATTACK 1 $sequence "empty" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\dryfire.SMD" rotate 90 fps 30 ACT_DRYFIRE 1 $sequence "draw" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\draw.SMD" rotate 90 fps 20 ACT_DRAW 1 $sequence "lower" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lower.SMD" rotate 90 fps 30 ACT_LOWER 1 $sequence "lowered" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lowered.SMD" rotate 90 fps 15 ACT_LOWERIDLE 1 $sequence "tocombat" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\tocombat.SMD" rotate 90 fps 15 ACT_RAISE 1 $sequence "recharge" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD" rotate 90 fps 60 ACT_RECHARGE 1 $animation "ACT_IDLE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\idle1.SMD" $animation "ACT_PRIMARYATTACK" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire.SMD" $animation "ACT_SECONDARYATTACK" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\fire2.SMD" $animation "ACT_DRYFIRE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\dryfire.SMD" $animation "ACT_DRAW" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\draw.SMD" $animation "ACT_LOWER" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lower.SMD" $animation "ACT_LOWERIDLE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\lowered.SMD" $animation "ACT_RAISE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\tocombat.SMD" $animation "ACT_RECHARGE" "E:\steam\steamapps\gordonfuxalyx\sourcesdk\bin\ep1\bin\heligun\recharge.SMD" $surfaceprop "metal" $attachment "muzzle" "HeliMuzzle" 0.00 0.00 0.00 rotate 0 0 0 $attachment "1" "ValveBiped.eject" 0.00 0.00 0.00 rotate 0 0 0[/code][/QUOTE] that is absolutely not what $animation is for
[QUOTE=MaxOfS2D;40534966]that is absolutely not what $animation is for[/QUOTE] Well then, please tell me, how can I fix this all so that the Activities play in-game?
[QUOTE=luavirusfree;40535404]Well then, please tell me, how can I fix this all so that the Activities play in-game?[/QUOTE] How about looking at valve wiki? They shown me all the stuff about qc i had to know.
[QUOTE=Matsilagi;40535421]How about looking at valve wiki? They shown me all the stuff about qc i had to know.[/QUOTE] No freaking poop, that's where I got $animation from -_-
[QUOTE=luavirusfree;40535429]No freaking poop, that's where I got $animation from -_-[/QUOTE] Then your pooping it wrong dude. Try and read carefully, i think on that situation that you only need $sequence. Here, use one of my QCs as an example: [CODE]$cd "C:\OICW\SRC" $modelname "weapons/v_ar2.mdl" $model "studio" "AR2_reference.smd" $includemodel "weapons/v_ar2_idle.mdl" $cdmaterials "models\Weapons\V_hand\" $cdmaterials "models\Weapons\V_ar2\" $hboxset "default" $hbox 0 "Bip01 L Forearm" -0.510 -3.273 -2.910 16.160 3.016 2.648 $hbox 0 "Bip01 L Hand" 0.000 -1.800 -2.727 5.087 1.633 2.281 $hbox 0 "Bip01 L Finger0" 0.000 -0.705 -1.261 1.518 0.789 0.811 $hbox 0 "Bip01 L Finger01" -0.394 -0.546 -0.685 1.222 0.630 0.675 $hbox 0 "Bip01 L Finger11" 0.000 -0.679 -0.650 1.781 0.401 0.523 $hbox 0 "Bip01 R Forearm" 0.000 -2.091 -0.992 15.997 1.716 1.503 $hbox 0 "Bip01 R Hand" -14.627 -1.579 -2.623 33.187 4.275 16.463 $hbox 0 "Bip01 R Finger0" 0.000 -0.706 -0.862 1.708 0.788 1.020 $hbox 0 "Bip01 R Finger01" 0.000 -0.548 -0.533 1.221 0.628 0.633 $hbox 0 "Bip01 R Finger2" 0.000 -0.308 -0.673 2.656 0.757 0.574 $hbox 0 "Dummy15" -3.724 -8.762 -0.562 2.258 2.061 0.617 $attachment "muzzle" "Bip01 R Hand" 32.00 2.60 5.60 rotate 0.00 0.00 90.00 $attachment "1" "Bip01 R Hand" 15.00 3.00 6.60 rotate -0.00 90.00 0.00 $surfaceprop "" $illumposition -37.755 7.023 -13.341 $sequence AR2_idle "AR2_idle" loop ACT_VM_IDLE 1 fps 30.00 $sequence AR2_primary_fire "AR2_primary_fire" ACT_VM_PRIMARYATTACK 1 snap fps 30.00 node 2 { { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzleflash_ar2 follow_attachment muzzle" } { event 6001 0 "1" } } $sequence AR2_primary_fire2 "AR2_primary_fire2" ACT_VM_HITLEFT 1 snap fps 30.00 node 2 { { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzleflash_ar2 follow_attachment muzzle" } { event 6001 0 "1" } } $sequence AR2_primary_fire3 "AR2_primary_fire3" ACT_VM_HITLEFT2 1 snap fps 30.00 node 2 { { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzleflash_ar2 follow_attachment muzzle" } { event 6001 0 "1" } } $sequence AR2_primary_fire4 "AR2_primary_fire4" ACT_VM_HITRIGHT 1 snap fps 30.00 node 2 { { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzleflash_ar2 follow_attachment muzzle" } { event 6001 0 "1" } } $sequence AR2_primary_dry "AR2_primary_dry" ACT_VM_DRYFIRE 1 fps 30.00 $sequence AR2_secondary_fire "AR2_secondary_fire" ACT_VM_SECONDARYATTACK 1 snap fps 30.00 $sequence AR2_draw "AR2_draw" ACT_VM_DRAW 1 fps 30.00 $sequence AR2_reload "AR2_reload" ACT_VM_RELOAD 1 fps 30.00 { { event 5004 11 "Weapon_OICW.Clipout" } { event 5004 36 "Weapon_OICW.Clipin" } { event 5004 47 "Weapon_OICW.Clipin2" } } $sequence nothreatidle "nothreatidle" loop ACT_VM_IDLE_LOWERED 1 fps 30.00 $sequence nothreattoidle "nothreattoidle" ACT_VM_LOWERED_TO_IDLE 1 fps 30.00 $sequence idletonothreat "idletonothreat" ACT_VM_IDLE_TO_LOWERED 1 fps 30.00 $sequence attack1 "attack1" ACT_RANGE_ATTACK_AR2 1 snap fps 30.00 $sequence attack2 "attack2" ACT_RANGE_ATTACK_AR2_GRENADE 1 snap fps 30.00 [/CODE]
$animation is only for creating an "internal" animation "file" for (pre)processing, e.g. blends, loop fixes etc
Well, okay, can anyone then explain why it is that the Sequences AND Acts work (and play properly) in the tools available within Source SDK (model viewer, Hammer Editor), but in-game they do not play?
No? No one can explain that? ... :suicide: :downs: :tinfoil: :rolleyes: [editline]9th May 2013[/editline] Really? You think this comment warrants a dumb rating? I really want these animations to work, but no one has the :words: to try and help again, and I'm dumb for bringing it back? You're pathetic if you believe that. :tinfoil: Unless you can provide me with an A+ reasonable answer as to why.
If you want help, try showing people respect rather than getting pissed at people for not helping someone who clearly won't appreciate the time and effort it took them to write a post.
I just can't seem to find it on the VALVe wiki, I've been searching for days and days... and since the animations AND activities play when the model is placed in Hammer, I don't believe that I've done anything wrong. [editline]9th May 2013[/editline] [QUOTE=>>oubliette<<;40582089]If you want help, try showing people respect rather than getting pissed at people for not helping someone who clearly won't appreciate the time and effort it took them to write a post.[/QUOTE] Excuse me? I'm upset that they just rate me dumb and act like that's the end of it. People who do that simply don't give a shit, about me or the cause, that's how I see it. [editline]9th May 2013[/editline] P.S. This is not flaming... It would be a hell of a lot worse if it was... and trolling? That's what I'm responding to, just rating me dumb and leaving IS trolling.
[QUOTE=luavirusfree;40582091]I just can't seem to find it on the VALVe wiki, I've been searching for days and days... and since the animations AND activities play when the model is placed in Hammer, I don't believe that I've done anything wrong. [editline]9th May 2013[/editline] Excuse me? I'm upset that they just rate me dumb and act like that's the end of it. People who do that simply don't give a shit, about me or the cause, that's how I see it. [editline]9th May 2013[/editline] P.S. This is not flaming... It would be a hell of a lot worse if it was... and trolling? That's what I'm responding to, just rating me dumb and leaving IS trolling.[/QUOTE] Max already explained. Time for you tiny little brain to work (If you have one of course). You need to learn how to read and be calm.
[QUOTE=Matsilagi;40584280]Max already explained. Time for you tiny little brain to work (If you have one of course). You need to learn how to read and be calm.[/QUOTE] Dude, it's not about reading, its about finding something in a library of over 9000 pages... I've searched for activity, all I got was how to make activities for NPC's, but not how to put them into the model. Since that didn't help, I searched for Animations. That isn't the right thing, but none of this matters. [B][U]The thing is, the animations actually work perfectly fine in Hammer Editor and Model Viewer, they just don't work in-game![/U][/B] [editline]9th May 2013[/editline] Hell, I feel like I need a new thread, one with the title "Animations work, just not in-game!"
[QUOTE=luavirusfree;40585169]Dude, it's not about reading, its about finding something in a library of over 9000 pages... I've searched for activity, all I got was how to make activities for NPC's, but not how to put them into the model. Since that didn't help, I searched for Animations. That isn't the right thing, but none of this matters. [B][U]The thing is, the animations actually work perfectly fine in Hammer Editor and Model Viewer, they just don't work in-game![/U][/B] [editline]9th May 2013[/editline] Hell, I feel like I need a new thread, one with the title "Animations work, just not in-game!"[/QUOTE] You dont need a new thread. You need to listen. I will be direct to you, you dont need $animation in this case, end of story. Now go away before i explode. [sp]Damn, i really need and want a gold account boost[/sp]
[QUOTE=Matsilagi;40586850]You dont need a new thread. You need to listen. I will be direct to you, you dont need $animation in this case, end of story. Now go away before i explode. [sp]Damn, i really need and want a gold account boost[/sp][/QUOTE] Seriously? This thread isn't even about the problem. The problem is that the animations simply don't work in-game! The ACT_* animations DO work, but in-game they never play. They are told to play, but the weapon does not move. [sp]I wonder how you did that...[/sp]
[QUOTE=luavirusfree;40587484]Seriously? This thread isn't even about the problem. The problem is that the animations simply don't work in-game! The ACT_* animations DO work, but in-game they never play. They are told to play, but the weapon does not move. [sp]I wonder how you did that...[/sp][/QUOTE] Oh my god FOR FUCKS SAKE PLEASE LISTEN TO SOMEONE ATLEAST ONE TIME! Remove the $animation, recompile and post the result, if it still doesnt work, send me the code and the source of the model and i will show what you could possibly did wrong.
[QUOTE=Matsilagi;40587537]Oh my god FOR FUCKS SAKE PLEASE LISTEN TO SOMEONE ATLEAST ONE TIME! Remove the $animation, recompile and post the result, if it still doesnt work, send me the code and the source of the model and i will show what you could possibly did wrong.[/QUOTE] I DID FUCKING REMOVE THE ANIMATIONS! DIDN'T I TELL YOU ALREADY, THE ONLY REASON I PUT THAT IN THERE IN THE FIRST PLACE WAS TO TRY AND FIX THIS PROBLEM!!! I suppose that means I have to show you the .qc... fine, here you go, what do you mean by the source? I took the v_smg1 model and the heligun model, decompiled them and replaced the SMG with the Heligun. Then I exported several .smd animation files using the SMG's animations, out of laziness. [code]$modelname "weapons\v_HeliGun.mdl"$scale 1.0 $cdmaterials "models" $body "Body" "heligun\HeliGunReference.SMD" $sequence "idle" "heligun\idle1.SMD" rotate 90 fps 20 ACT_IDLE 1 $sequence "shoot" "heligun\fire.SMD" rotate 90 fps 42 ACT_PRIMARYATTACK 1 $sequence "chargedshoot" "heligun\fire2.SMD" rotate 90 fps 28 ACT_SECONDARYATTACK 1 $sequence "empty" "heligun\dryfire.SMD" rotate 90 fps 30 ACT_DRYFIRE 1 $sequence "draw" "heligun\draw.SMD" rotate 90 fps 20 ACT_DRAW 1 $sequence "lower" "heligun\lower.SMD" rotate 90 fps 30 ACT_LOWER 1 $sequence "lowered" "heligun\lowered.SMD" rotate 90 fps 15 ACT_LOWERIDLE 1 $sequence "tocombat" "heligun\tocombat.SMD" rotate 90 fps 15 ACT_RAISE 1 $sequence "recharge" "heligun\recharge.SMD" rotate 90 fps 60 ACT_RECHARGE 1 $surfaceprop "metal" $attachment "muzzle" "HeliMuzzle" 0.00 0.00 0.00 rotate 0 0 0 $attachment "1" "ValveBiped.eject" 0.00 0.00 0.00 rotate 0 0 0[/code] I will also PM this to you if I can. [editline]9th May 2013[/editline] Oh my, let me guess, flaming because of all-caps? Look, you think I don't listen to people? This was always a problem, even before I used the $animation tag. In fact, I only used that because of this problem; it was the best possible solution I could find. [editline]9th May 2013[/editline] Thank you sooo much, [URL="http://facepunch.com/member.php?u=226953"]Matsilagi[/URL]! With your help, I actually got it to work perfectly. Again, thank you very, very much! Large Image In-coming!!! [IMG]http://oi41.tinypic.com/2wnu3pv.jpg[/IMG] Large Image Out-going! The gun model looks low-quality, but it's the exact same quality as the original AirBoat Gun. It has the same exact texture, exact same texture alignment, and exact same shape. There are hands, but you can no longer see them for now. Also, I figure since there's always someone who's gonna rate me dumb, why not justify it with comments like "Large Image Out-going/In-coming" and a giant ass image?
Oh, yeah, btw, if you think that gun looks like a box, tell that to VALVe. It's their model, completely unchanged, just made into a view model. Image has been shrunk! [IMG]http://img833.imageshack.us/img833/5817/smallershowswireframe.jpg[/IMG] This image shows you all of the polygons that are visible, of this model, when it is idle.
the [ t][ /t] tags are your friends. Also of course it's going to be blocky, the model is from 2004 and was never meant to be seen that close.
What does [t] do, make it a thumbnail? The model may be from 2004, but they last updated the texture in 2007... but I can fix that problem, the problem is the texture. For the end result to look decent, I will need a [URL="http://facepunch.com/showthread.php?t=1270137&p=40628180#post40628180"]much better texture[/URL] than even Fake Factory's.
Sorry, you need to Log In to post a reply to this thread.