No4Sniper to Gewehr43_zf4 Conversion Animation Question
No4Sniper to Gewehr43_zf4 Conversion Animation Question
So I'm trying to convert the No4Sniper to the Gewehr43_zf4 from Secret Weapons.
The reason I'm not just patching the weapon into my objects is because I want clients to be able to join my servers without being required to have the CSM. Unmodded Clients will have a fully functioning No4Sniper, while Modded Clients will have the Gewehr43_zf4.
Everything is working good so far except the reload animation.. the No4Sniper calls for a reload animation after every shot because it's bolt action. the Gewehr43_zf4 is semi-automatic and doesn't need the reload animation after each shot.. what I have done up to now is copy all the original Gewehr43_zf4 Animations and rename them to the No4Sniper animation file names.
The rifle is loading the correct animations.. but it's loading the reload animations after each shot.. so my question is, Where do the Animation calls originate from? What do I need to edit to make the rifle stop calling for the reload animation after every shot?
Thanks
The reason I'm not just patching the weapon into my objects is because I want clients to be able to join my servers without being required to have the CSM. Unmodded Clients will have a fully functioning No4Sniper, while Modded Clients will have the Gewehr43_zf4.
Everything is working good so far except the reload animation.. the No4Sniper calls for a reload animation after every shot because it's bolt action. the Gewehr43_zf4 is semi-automatic and doesn't need the reload animation after each shot.. what I have done up to now is copy all the original Gewehr43_zf4 Animations and rename them to the No4Sniper animation file names.
The rifle is loading the correct animations.. but it's loading the reload animations after each shot.. so my question is, Where do the Animation calls originate from? What do I need to edit to make the rifle stop calling for the reload animation after every shot?
Thanks
Last edited by 285mods on Sat Dec 14, 2013 7:47 pm, edited 3 times in total.
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods
- Vilespring
- Posts: 740
- Joined: Sat Nov 24, 2012 5:47 am
- Location: Somewere in the United States
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
I know what your talking about, there is a line somewhere, but I have no idea where it is! 

A picture is worth a thousand words, but takes up three thousand times the memory.
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
Animations.rfa > Animations/AnimationsStatesShoot.con
Look for these lines:
AnimationStateMachine.setActiveState Ub_FireNo4
AnimationStateMachine.addTransitionWhenDone Ub_StandReloadNo4
Look for these lines:
AnimationStateMachine.setActiveState Ub_FireNo4
AnimationStateMachine.addTransitionWhenDone Ub_StandReloadNo4
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
Swaffy wrote:Animations.rfa > Animations/AnimationsStatesShoot.con
Look for these lines:
AnimationStateMachine.setActiveState Ub_FireNo4
AnimationStateMachine.addTransitionWhenDone Ub_StandReloadNo4
Thanks Swaffy

I remmed out the following No4Sniper lines in [Animations.rfa > Animations/AnimationsStatesShoot.con] and now have a successful mod


He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
SO I thought I was done with this mod.. but I have found yet another glitch.. I am hoping someone will be able to help me figure out what I'm doing wrong.
The problem:
First of all, This problem does not exist when I create a local game.. However, when I connect to an Internet Server, everything seems to work fine until I start trying to pan the view with the scope zoomed in.. it starts to lag really bad.. I have tested this with several different servers, and also had a friend test the mod on his computer with the exact same results.. When I zoom in the scope and try to pan the view left or right, it starts jerking and lagging really bad. Any help is appreciated
Here is a copy of the Mod in question
http://www.mediafire.com/download/vj32d ... %20Mod.rar
The problem:
First of all, This problem does not exist when I create a local game.. However, when I connect to an Internet Server, everything seems to work fine until I start trying to pan the view with the scope zoomed in.. it starts to lag really bad.. I have tested this with several different servers, and also had a friend test the mod on his computer with the exact same results.. When I zoom in the scope and try to pan the view left or right, it starts jerking and lagging really bad. Any help is appreciated
Here is a copy of the Mod in question
http://www.mediafire.com/download/vj32d ... %20Mod.rar
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
Anyone have a chance to take a look at this?
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
if it is lagging just after a shot its propably because of
thats controlled by the server as far as i know
Code: Select all
ObjectTemplate.unZoomBetweenFireTime 3.0
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
I'll check that.. thanksfreddy wrote:if it is lagging just after a shot its propably because ofthats controlled by the server as far as i knowCode: Select all
ObjectTemplate.unZoomBetweenFireTime 3.0
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
That did not fix the problem Freddy 

He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods
Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question
Solved.
ObjectTemplate.zoomFov 0.1 <---Original
ObjectTemplate.zoomFov 0.2 <---Modded
Apparently modding this line will make the scope view lag.. putting it back to default fixed it
ObjectTemplate.zoomFov 0.1 <---Original
ObjectTemplate.zoomFov 0.2 <---Modded
Apparently modding this line will make the scope view lag.. putting it back to default fixed it

He is no fool to lose that which he cannot keep, To gain that which he cannot lose.
285mods
285mods