Hi all. I've been trying and failing to achieve what could be a simple thing. When bots are waiting, it plays a animation seq. One is 'CockGun'/'CockGunL' animation and the other is 'Look'/'LookL' animation which are present in most mesh like commandos and soldiers. The human player, however, only plays the CockGun animation when the player is idle but not Look animation. So, I figured the code on the class TournamentPlayer from PlayerPawn class has not included that Look animation as given below:
if ( FRand() < 0.1 )
{
if ( (Weapon == None) || (Weapon.Mass < 20) )
PlayAnim('CockGun', 0.5 + 0.5 * FRand(), 0.3);
else
PlayAnim('CockGunL', 0.5 + 0.5 * FRand(), 0.3);
}
All I'm trying to do is include this 'Look' animation but failing. I can't edit the code directly using UnrealEd 2.0. It is not saving. I took help from chatGPT/Grok to write mutators to add it manually. It didn't either compile because of errors or compile but still doesn't activate that animation in-game.
Can somebody help?
Need help with "Look" animation
-
- Godlike
- Posts: 6487
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Need help with "Look" animation
First of all it is NOT advisable to modify stock files in client unless you want to be rejected in servers with a "mismatch version" error.Silverprad wrote: ↑Sun Jan 26, 2025 5:37 am I can't edit the code directly using UnrealEd 2.0. It is not saving.
If everyone is adjusting files how wants, some dudes might implement "helpers" in their files - cheats more specific.
Depending on your needs you might use a new "child class" game-type having other specific player - I used this way to solve missing animations from some player models spamming log. To be more clear I'm not using original CTF/DM games. Players in these matches might do what Bot does - finding an enemy based on Paths-Net from map - and also other various fixes because in that time it was no 469 UT patch available.
Welcome aboard !
-
- Posts: 2
- Joined: Sun Jan 26, 2025 5:17 am
Re: Need help with "Look" animation
Thanks for the reply, Sektor. So, basically I'm playing only single player games for time-pass. Not worried about version mis-match in servers and all. I just thought that the animation would look cool to see in-game with behindview on and in the process learn some codding. But in vain.
I even tried to create a separate mutator mod by binding a specific key to that animation. So that when i press the assigned button, the animation would play but didn't happened.
I even tried to create a separate mutator mod by binding a specific key to that animation. So that when i press the assigned button, the animation would play but didn't happened.