Type5 DMR/Sniper Animations not working
Posted: Fri Jul 22, 2022 3:51 pm
Hi there!
Silent lurker here
Big thanks to the forum and old posts - a lot of helpful input.
To the task at hand:
I'm trying to create a very basic DMR/Autosniper by copying the original Type5 (and later M1 Garand) of the game.
So far I've got a working and not crashing Type5 with scope zoom but no animations
I tried to follow these threads:
viewtopic.php?f=6&t=669
viewtopic.php?f=6&t=1586
But still no chance.
At this point I dunno
Objects.con from Type5:
singleShotWeapons.inc
MiscAnimationsTweaking.con
1pAnimationsTweaking.con
3pAnimationsTweaking.con
Silent lurker here

Big thanks to the forum and old posts - a lot of helpful input.
To the task at hand:
I'm trying to create a very basic DMR/Autosniper by copying the original Type5 (and later M1 Garand) of the game.
So far I've got a working and not crashing Type5 with scope zoom but no animations

I tried to follow these threads:
viewtopic.php?f=6&t=669
viewtopic.php?f=6&t=1586
But still no chance.

At this point I dunno

Objects.con from Type5:
Code: Select all
Rem *** Type5DMR ***
ObjectTemplate.create HandFireArms Type5DMR
ObjectTemplate.itemIndex 6
ObjectTemplate.networkableInfo HandFireArmsInfo
ObjectTemplate.projectileTemplate M1GarandProjectile
ObjectTemplate.projectilePosition 0/0/0
ObjectTemplate.magSize 10
ObjectTemplate.numOfMag 8
ObjectTemplate.magType 0
ObjectTemplate.reloadtime 5.0
ObjectTemplate.roundOfFire 8
ObjectTemplate.autoReload 1
ObjectTemplate.zoomFov 0.23
ObjectTemplate.useScope 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.fireOnce 1
ObjectTemplate.altFireOnce 1
ObjectTemplate.soldierZoomFov 0.6
ObjectTemplate.soldierZoomPosition -0.04/-0.03/0
ObjectTemplate.soldierCameraPosition -0.02/-0.03/0.01
ObjectTemplate.addRootSpeed 0
ObjectTemplate.ammoType 1
ObjectTemplate.GUIIndex 3
ObjectTemplate.setHudAmmoType ATAmmoBar
ObjectTemplate.setAmmoBar "Ingame/Magbar_Rifle_empty_32x64.tga"
ObjectTemplate.setAmmoBarFill "Ingame/Magbar_Rifle_full_32x64.tga"
ObjectTemplate.setAmmoBarSize 20
ObjectTemplate.setAmmoBarPosX 6
ObjectTemplate.setAmmoBarPosY -17
ObjectTemplate.setAmmoBarTextPosX 5
ObjectTemplate.setAmmoBarTextPosY 10
ObjectTemplate.setScopeIcon "sniper.tga"
ObjectTemplate.setSniperSight 1
ObjectTemplate.setCrossHairType CHTNone
Rem *** Deviation Begin *****
ObjectTemplate.velocity 1500
ObjectTemplate.setRecoilForceUp CRD_UNIFORM/0.3/0.3/0
ObjectTemplate.setRecoilForceLeftRight CRD_UNIFORM/0/0/0
ObjectTemplate.setHasRecoilForce 1
ObjectTemplate.setGoBackOnRecoil 1
ObjectTemplate.setSpeedDev 0.0 0.0 0.0 0.0
ObjectTemplate.setMiscDev 0.0 0.0 0.0
Rem *** Deviation End *****
ObjectTemplate.fireInCameraDof 1
ObjectTemplate.loadSoundScript Sounds/Type5.ssc
ObjectTemplate.createSkeleton animations/Type5.ske
ObjectTemplate.useSkeletonPartAsMain Base
rem *** LodObject must be located as first child to work on handweapons.
ObjectTemplate.addTemplate Type5DMRLod
ObjectTemplate.addTemplate e_MuzzGun
ObjectTemplate.setPosition 0/0.05/0.84
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate e_shellM1Garand
ObjectTemplate.setPosition 0/0.1/0.41
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.create SimpleObject Type5DMRSimple
ObjectTemplate.geometry Type5Simple
ObjectTemplate.create SimpleObject Type5DMRMagasin
ObjectTemplate.geometry Type5Magasin
ObjectTemplate.create SimpleObject Type5DMRReload
ObjectTemplate.geometry Type5Reload
ObjectTemplate.create SimpleObject Type5DMRPlupp
ObjectTemplate.geometry Type5Plupp
ObjectTemplate.create SimpleObject Type5DMRTrigger
ObjectTemplate.geometry Type5trigger
ObjectTemplate.create AnimatedBundle Type5DMRComplex
ObjectTemplate.createSkeleton animations/Type5.ske
rem ###ObjectTemplate.geometry Type5DMR
ObjectTemplate.geometry Type5
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.addTemplate Type5DMRTrigger
ObjectTemplate.bindToSkeletonPart trigger
ObjectTemplate.addTemplate Type5DMRReload
ObjectTemplate.bindToSkeletonPart reload
ObjectTemplate.addTemplate Type5DMRPlupp
ObjectTemplate.bindToSkeletonPart plupp
ObjectTemplate.addTemplate Type5DMRMagasin
ObjectTemplate.bindToSkeletonPart mag
ObjectTemplate.create LodObject Type5DMRLod
ObjectTemplate.lodselector HandWeaponLodSelector
ObjectTemplate.addTemplate Type5DMRComplex
ObjectTemplate.addTemplate Type5DMRSimple
Code: Select all
rem ** Type5DMR
AnimationStateMachine.copyState Type5DMR v_args1 Type5 1.0 Type5 1.0
AnimationStateMachine.copyState2 Type5DMR v_arg1 Type5 1.0 Type5 1.0
Code: Select all
rem --Type5DMR--
AnimationStateMachine.set3pAnimationSpeed WeaponFireType5DMR 2
AnimationStateMachine.set3pAnimationSpeed WeaponReloadType5DMR .2
AnimationStateMachine.set3pAnimationSpeed WeaponLieReloadType5DMR .3
Code: Select all
rem --Type5DMR--
AnimationStateMachine.set1pAnimationSpeed Ub_StandAimType5DMR .2
AnimationStateMachine.set1pAnimationSpeed Ub_StandReloadType5DMR .2
AnimationStateMachine.set1pAnimationSpeed Ub_LieReloadType5DMR .2
AnimationStateMachine.set1pAnimationSpeed Ub_RunForwardType5DMR 1.33
AnimationStateMachine.set1pAnimationSpeed Ub_LieForwardType5DMR .70
AnimationStateMachine.set1pAnimationSpeed Ub_RunBackwardType5DMR 1.33
AnimationStateMachine.set1pAnimationSpeed Ub_LieBackwardType5DMR .70
AnimationStateMachine.set1pAnimationSpeed Ub_StrafeLeftType5DMR 1.33
AnimationStateMachine.set1pAnimationSpeed Ub_StrafeRightType5DMR 1.33
AnimationStateMachine.set1pAnimationSpeed Ub_FireType5DMR 5
AnimationStateMachine.set1pAnimationSpeed Ub_LieFireType5DMR 5
AnimationStateMachine.set1pAnimationSpeed Ub_FireEndType5DMR 1.40
AnimationStateMachine.set1pAnimationSpeed Ub_IdleType5DMR1 0.4
AnimationStateMachine.set1pAnimationSpeed Ub_IdleType5DMR2 0.4
Code: Select all
rem --Type5DMR--
AnimationStateMachine.set3pAnimationSpeed Ub_StandType5DMR 0.60
AnimationStateMachine.set3pAnimationSpeed Ub_TurnType5DMR 1.60
AnimationStateMachine.set3pAnimationSpeed Ub_StandAimType5DMR 0.80
AnimationStateMachine.set3pAnimationSpeed Ub_WalkForwardType5DMR 1.0
AnimationStateMachine.set3pAnimationSpeed Ub_WalkBackwardType5DMR -1.0
AnimationStateMachine.set3pAnimationSpeed Ub_RunForwardType5DMR 1.60
AnimationStateMachine.set3pAnimationSpeed Ub_RunBackwardType5DMR -1.60
AnimationStateMachine.set3pAnimationSpeed Ub_StrafeLeftType5DMR 1.30
AnimationStateMachine.set3pAnimationSpeed Ub_StrafeRightType5DMR 1.30
AnimationStateMachine.set3pAnimationSpeed Ub_StandJumpType5DMR 1.10
AnimationStateMachine.set3pAnimationSpeed Ub_RunJumpType5DMR 1.18
AnimationStateMachine.set3pAnimationSpeed Ub_FireType5DMR 3.00
AnimationStateMachine.set3pAnimationSpeed Ub_FireEndType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieFireType5DMR 3.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieFireEndType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_IdleType5DMR1 0.50
AnimationStateMachine.set3pAnimationSpeed Ub_IdleType5DMR2 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_IdleType5DMR3 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchIdleType5DMR1 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchIdleType5DMR2 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchIdleType5DMR3 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchType5DMR 0.80
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchTurnType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchForwardType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchBackwardType5DMR -1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchStrafeLeftType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchStrafeRightType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchToLieType5DMR 1.60
AnimationStateMachine.set3pAnimationSpeed Ub_LieToCrouchType5DMR -2.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieToStandType5DMR -3.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieForwardType5DMR 1.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieBackwardType5DMR -0.80
AnimationStateMachine.set3pAnimationSpeed Ub_LieTurnLeftType5DMR 2.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieTurnRightType5DMR 2.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieStrafeLeftType5DMR 2.00
AnimationStateMachine.set3pAnimationSpeed Ub_LieStrafeRightType5DMR 2.00
AnimationStateMachine.set3pAnimationSpeed Ub_RunStandToLieType5DMR 1.40
AnimationStateMachine.set3pAnimationSpeed Ub_StandReloadType5DMR 0.41
AnimationStateMachine.set3pAnimationSpeed Ub_LieReloadType5DMR 0.35
AnimationStateMachine.set3pAnimationSpeed Ub_StandRaiseWeaponType5DMR -1.60
AnimationStateMachine.set3pAnimationSpeed Ub_CrouchRaiseWeaponType5DMR -1.60
AnimationStateMachine.set3pAnimationSpeed Ub_LieRaiseWeaponType5DMR -1.60