Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HL] Some Weapons do not Play Idle Animations #1585

Open
Nevermore2790 opened this issue Jan 6, 2015 · 13 comments
Open

[HL] Some Weapons do not Play Idle Animations #1585

Nevermore2790 opened this issue Jan 6, 2015 · 13 comments

Comments

@Nevermore2790
Copy link

Weapons like: Crowbar, Gluon Gun and Tau Cannon have idle animations (can be seen in the model viewer, Half-Life: Source and some mods) that do not play in the final release. This thing haven't been fixed since the game's release up to now.

@HARDSTYLEBG
Copy link

Yep one of the gauss animation for example is rotating the gauss spinning part with fingers on the left hand

@Nevermore2790
Copy link
Author

@HARDSTYLEBG - Don't forget about the Gluon Gun's flare effect too, and looking at the model viewer, the Crowbar has 3 idle animations (only 1 is used). It also included an unused attack hit animation (this must be the attack animation of the Crowbar in Black Mesa is based on). Same with the Tau Cannon, it has 2 firing animations (the other firing animation is the only firing animation in Half-Life: Source is used ---- looking at it, I am curious to which attack is that unused one. Either primary or secondary?)

@HARDSTYLEBG
Copy link

@Nevermore2790 Yes i know about all of them (: I just gave only this as example.This video shows some of the flaws of the new Half-Life https://www.youtube.com/watch?v=uKkJPFmDW9Q ;I think those animations and other stuff are cutted out to reduce size because back then the internet was slow anyway now most people have decent internet so i don't think there will be any problem to put them back.

@JoelTroch
Copy link
Contributor

I made the following tests on a clean HL1's source code, this means that it does not concern the retail Half-Life but the mods, I was using the Blue-Shift/Opposing Force HD pack :

  • Crowbar's idle animations seems to be not played.
    • UPDATE : Fixed on my fork, see the dedicated branch for that (sorry for all the commits mess but my fork is a complete mess).
  • All Python's idle animations are played, only the "reload" sound is missing.
    • UPDATE : Fixed below, download the fixed MDLs and extract them in your game's folder (make backups first).
  • The MP5's fire rate seems to be the same as the old HL's version.
  • No transparency on Gauss gun and Gluon gun beams.
  • No "end portal" effect on Gluon gun.
  • Hivehand's deploy animation doesn't have time to finish.
    • UPDATE : I think I won't fix that one and here's why : Weapons have a "WeaponIdle" method that is called 1 second after being deployed, the hornet gun's "WeaponIdle" calls it's "Reload" method to replenish the hornets, if I delay the call to "WeaponIdle" to fix the animation I also delay the "reload", this means that it's a tweak in gameplay and I can't afford myself to do it unless Valve tells me it's fine.
  • I was able to shoot the dead Barney on all his body part, for some of them (especially the legs), I had to be at an "exact" position otherwise the bullets goes to the world.
  • The "fast crowbar corpse gibber" is also present.

I can make some fixes for the things reported above, but remember, it will be for HL1 mods, it's up to Valve to integrate them in the standard Half-Life.

Please ignore the commits mess below and the closed PR

@Nevermore2790
Copy link
Author

@joel - In the SteamPipe Half-Life 1, the MP5's fire rate is now the same as the old version. 357 already has a reload sound (except for HD, OpFor and BS) since the first Steam Version. Also, where's the Tau Cannon and Gluon Gun? Also, where is that .cpp file? I can't find it easily.

@JoelTroch
Copy link
Contributor

@Nevermore2790 : I was forced to clean my fork because it's a huge mess (I'm not a Git expert).

For the 357 sound, I think adding a sound event to the MDL is fine, no need to have a server side sound.
I didn't found yet for the Tau and Gauss, but I'll keep looking when I have time.

@Nevermore2790
Copy link
Author

Where's that .cpp file in the game files?? I can't seem to find it?

@JoelTroch
Copy link
Contributor

I sent a more clean PR for the Crowbar's idle animation thanks to some Git/GitHub training.

@Nevermore2790 : CPP files are for the source code, you won't find them in game's files.

UPDATE : I fixed the missing 357 reload sound for Half-Life HD, Blue-Shift LD/HD and Opposing Force LD/HD (only the Half-Life LD model didn't had that issue), download this archive and extract into your "Half-Life" folder, I suggest to make a backup of the original files first if something goes wrong

http://www.mediafire.com/download/3bdnt9b2hyb1531/v_357.zip

@Nevermore2790
Copy link
Author

Can't find that Source Code easily, so I might just need some assistance or a download or someone try to fix it. :)

@JoelTroch
Copy link
Contributor

If you DON'T have Git installed (all OS)

Go the main repository page, on the right, you should see a "Download ZIP" button, click it, let GitHub generate the ZIP file for you, then your favorite Internet browser will handle the rest.

If you are running on Windows and have Git for Windows installed

Go to the folder where you want the source code to be downloaded, then hold SHIFT and right click in an empty space in Windows's explorer. You should see "Git Bash" in the menu, click on it to open it, then clone this repository using this command:

git clone https://github.com/ValveSoftware/halflife.git

If you don't like commands, you can use a GUI (Graphical User Interface) client, I'm using GitExtensions, but GitHub has it's own client and there is also SourceTree.

If you are running on Linux/Mac OS and have Git installed

You just need to open the terminal of your Linux distro/Mac OS then type the same command as Windows which is:

git clone https://github.com/ValveSoftware/halflife.git

@JoelTroch
Copy link
Contributor

I think I know why Valve disabled the Gauss gun's spin animation (called fidget in the MDL file), have a look below (remember it's a theory):

Game/Mod Low Definition (LD) Model High Definition (HD) Model
Half-Life Normal No hands, just a spin and a little move
Blue Shift Same MDL as Half-Life LD Same MDL as Half-Life HD
Opposing Force No MDL, so it uses the one from Half-Life LD Same MDL as Half-Life HD

I also found that idle animations will be played only if you overcharge the Gauss gun.

@Nevermore2790
Copy link
Author

I do not have Git installed, and I have downloaded the .zip file (file is halflife-master). I can now see the Source Code of the weapons... okay, I really can't understand what to do... unless there are pictures.
Gearbox, really did not edit the Tau Cannon (because in the final release of Half-Life 1, it's frozen in idle).
Also, it can also play its idle animation upon a loading screen, but sadly, it only uses 1 idle animation.

@agrastiOs
Copy link

agrastiOs commented Jul 13, 2019

@kisak-valve, this issue details the same problems as #2495, but the latter details the issue much better and includes fixes, so I suggest this gets closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants