ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.7k stars 624 forks source link

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

Open Nevermore2790 opened 9 years ago

Nevermore2790 commented 9 years ago

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 commented 9 years ago

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

Nevermore2790 commented 9 years ago

@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 commented 9 years ago

@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 commented 9 years ago

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 :

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 commented 9 years ago

@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 commented 9 years ago

@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 commented 9 years ago

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

JoelTroch commented 9 years ago

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 commented 9 years ago

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

JoelTroch commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 5 years ago

@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.