Modified weapon.fpi:
;Artificial Intelligence Script
;Header
desc = Weapon Pickup
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;state=2:state=3,playerdrop,colon,plrsound=audiobank\items\pickup.wav
:state=3,plrdistfurther=65:state=10,setvar=plrgotgun 1
;End of Script
Modified player body:
;Artificial Intelligence Script
;Header
desc = Player Body (Requires v119 beta 9 or higher)
;For an entity to use this script, you must offset the "Bip01" bone by 20 units on the Z axis
;using the "Translate Key" function found in fragMOTION's "Skeletal Animation" menu.
;Designed for use with the stock Wehrmacht character but should work with most stock
;characters and model packs.
;Triggers
;Startup
:state=0,weaponinslot=1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=40,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28
:state=0:state=1,coloff,entitysetimmune=1,setcamoffsety=10,hidelimb=46,dimlocalvar=dead,dimvar=plrgotgun,setvar=plrgotgun 0,setvar=dead 0
:always:linktoplr,linkyrotation=1
;Animations
:plralive=1,plronground=1,ifweapon=0,plrnotrunning,keypressed=17 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=2,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrnotrunning,keypressed=17 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=52,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrnotrunning,keypressed=17 0,keypressed=200 1,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=2,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrnotrunning,keypressed=17 0,keypressed=200 1,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=52,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrnotrunning,keypressed=31 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=2,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrnotrunning,keypressed=31 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=52,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrnotrunning,keypressed=31 0,keypressed=200 0,keypressed=203 0,keypressed=208 1,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=2,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrnotrunning,keypressed=31 0,keypressed=200 0,keypressed=203 0,keypressed=208 1,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=52,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrrunning,keypressed=17 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=5,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrrunning,keypressed=17 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=55,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrrunning,keypressed=17 0,keypressed=200 1,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=5,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrrunning,keypressed=17 0,keypressed=200 1,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=55,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrrunning,keypressed=31 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=5,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrrunning,keypressed=31 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=55,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,plrrunning,keypressed=31 0,keypressed=200 0,keypressed=203 0,keypressed=208 1,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=5,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,plrrunning,keypressed=31 0,keypressed=200 0,keypressed=203 0,keypressed=208 1,keypressed=205 0,keypressed=46 0,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=55,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,keypressed=30 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=17 0,keypressed=32 0:animationnormal,animate=3,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,keypressed=30 0,keypressed=200 0,keypressed=203 1,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=17 0,keypressed=32 0:animationnormal,animate=3,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,keypressed=32 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=17 0:animationnormal,animate=4,plrfreeze=0
:plralive=1,plronground=1,ifweapon=0,keypressed=32 0,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 1,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=17 0:animationnormal,animate=4,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,keypressed=30 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=17 0,keypressed=32 0:animationnormal,animate=53,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,keypressed=30 0,keypressed=200 0,keypressed=203 1,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=17 0,keypressed=32 0:animationnormal,animate=53,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,keypressed=32 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=17 0:animationnormal,animate=54,plrfreeze=0
:plralive=1,plronground=1,ifweapon=1,keypressed=32 0,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 1,keypressed=46 0,keypressed=31 0,keypressed=30 0,keypressed=17 0:animationnormal,animate=54,plrfreeze=0
:plralive=1,plronground=1,keypressed=46 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=17 0,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=31,plrfreeze=0
:plralive=1,plronground=1,keypressed=46 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=17 1,keypressed=31 0,keypressed=30 0,keypressed=32 0:animationnormal,animate=82,plrfreeze=0
:plralive=1,plronground=1,keypressed=46 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=31 1,keypressed=17 0,keypressed=30 0,keypressed=32 0:animationreverse,animate=82,plrfreeze=0
:plralive=1,plronground=1,keypressed=46 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=30 1,keypressed=31 0,keypressed=17 0,keypressed=32 0:animationnormal,animate=83,plrfreeze=0
:plralive=1,plronground=1,keypressed=46 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=32 1,keypressed=31 0,keypressed=30 0,keypressed=17 0:animationnormal,animate=84,plrfreeze=0
:plralive=1,plronground=1,keypressed=30 1,keypressed=32 1:animate=1,plrfreeze=5000000
:plralive=1,plronground=1,keypressed=203 1,keypressed=205 1:animate=1,plrfreeze=5000000
:plralive=1,plronground=1,keypressed=200 1,keypressed=17 1:animate=1,plrfreeze=5000000
:plralive=1,plronground=1,keypressed=208 1,keypressed=31 1:animate=1,plrfreeze=5000000
:plralive=1,plronground=1,keypressed=17 1,keypressed=31 1:animate=1,plrfreeze=5000000
:plralive=1,plronground=1,keypressed=200 1,keypressed=208 1:animate=1,plrfreeze=5000000
:plralive=1,plronground=1,keypressed=30 1,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=32 0:plrfreeze=0
:plralive=1,plronground=1,keypressed=30 0,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=32 1:plrfreeze=0
:plralive=1,plronground=1,keypressed=17 0,keypressed=200 0,keypressed=203 0,keypressed=208 0,keypressed=205 0,keypressed=31 0,keypressed=30 0,keypressed=32 0,keypressed=46 0:animate=1
:plralive=1,plronground=0,ifweapon=1:animate=91
:plralive=1,plronground=0,ifweapon=0:animate=41
:plralive=1,plrjumping,ifweapon=1:animate=91
:plralive=1,plrjumping,ifweapon=0:animate=41
:plralive=1,varequal=wateron 1,underwater=1,ifweapon=1:animate=91
:plralive=1,varequal=wateron 1,underwater=1,ifweapon=0:animate=41
:plralive=1:setvar=dead 0
:plralive=0,varequal=dead 0:setvar=dead 1,state=2
:state=2:state=3,setframe=11
:state=3:incframe=11
:state=3,framebeyond=11 50,noraycastup=0 -50:setframe=11,incframe=11,advframe=50
:state=3,raycast=0 40,framewithin=11 50:setframe=12,forcebounce=0,state=4
:state=3,raycast=0 60,framebeyond=11 50:forcebounce=0
:state=3,frameatend=11:state=1
:state=4:incframe=12
:state=4,frameatend=12:state=1
;LewMod-style features
:weaponinslot=1,keypressed=2 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=2,keypressed=3 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=3,keypressed=4 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=4,keypressed=5 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=5,keypressed=6 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=6,keypressed=7 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=7,keypressed=8 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=8,keypressed=9 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:weaponinslot=9,keypressed=10 1:hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
:plrnotzoomed,keypressed=11 1:showlimb=35,showlimb=36,showlimb=37,showlimb=25,showlimb=26,showlimb=27,showlimb=28,showlimb=40
;Bug fix
:varequal=plrgotgun 1:setvar=plrgotgun 0,hidelimb=35,hidelimb=36,hidelimb=37,hidelimb=25,hidelimb=26,hidelimb=27,hidelimb=28,hidelimb=40
;End of Script