No4Sniper to Gewehr43_zf4 Conversion Animation Question

Ask questions, discuss ideas, get answers
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post 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
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
User avatar
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

Post by Vilespring »

I know what your talking about, there is a line somewhere, but I have no idea where it is! :lol:
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post by Swaffy »

Animations.rfa > Animations/AnimationsStatesShoot.con

Look for these lines:
AnimationStateMachine.setActiveState Ub_FireNo4
AnimationStateMachine.addTransitionWhenDone Ub_StandReloadNo4
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post 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
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.

285mods
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post 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
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.

285mods
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post by 285mods »

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
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post 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
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post 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
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.

285mods
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post by 285mods »

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
User avatar
285mods
Posts: 22
Joined: Tue Dec 03, 2013 12:58 am
Location: US
Contact:

Re: No4Sniper to Gewehr43_zf4 Conversion Animation Question

Post 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 :)
He is no fool to lose that which he cannot keep, To gain that which he cannot lose.

285mods
Post Reply