Page 1 of 2

No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Tue Dec 03, 2013 1:11 am
by 285mods
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

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Tue Dec 03, 2013 4:28 am
by Vilespring
I know what your talking about, there is a line somewhere, but I have no idea where it is! :lol:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Tue Dec 03, 2013 7:05 am
by Swaffy
Animations.rfa > Animations/AnimationsStatesShoot.con

Look for these lines:
AnimationStateMachine.setActiveState Ub_FireNo4
AnimationStateMachine.addTransitionWhenDone Ub_StandReloadNo4

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Tue Dec 03, 2013 4:24 pm
by 285mods
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 :)

Image

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Wed Dec 11, 2013 4:20 am
by 285mods
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

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Thu Dec 12, 2013 5:41 pm
by 285mods
Anyone have a chance to take a look at this?

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Sat Dec 14, 2013 3:09 am
by freddy
if it is lagging just after a shot its propably because of

Code: Select all

ObjectTemplate.unZoomBetweenFireTime 3.0
thats controlled by the server as far as i know

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Sat Dec 14, 2013 5:24 pm
by 285mods
freddy wrote:if it is lagging just after a shot its propably because of

Code: Select all

ObjectTemplate.unZoomBetweenFireTime 3.0
thats controlled by the server as far as i know
I'll check that.. thanks

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Sat Dec 14, 2013 7:32 pm
by 285mods
That did not fix the problem Freddy :(

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Posted: Sat Dec 14, 2013 7:47 pm
by 285mods
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 :)