[Weapon-Asset] Functional Crossbow in Enlisted! 🎯

greetings, and welcome to a new thread.

thanks to @Bazsi37 and partially me, we managed to “repair” and reinstate a fully functional crossbow!.
which comes with a scope too!

for all your hunting needs :wink:

small video of how it works:

code / how to install it:

paste the following inside an entity.blk:

crossbow{
  _use:t="main_weap_slots"
  _use:t="ironsights_open_launchers"
  gun_shell_ejection__expireTime:r=0.0
  animchar__res:t="crossbow_char"
  gun__blk:t="%ugm/guns/crossbow.blk"
  item__template:t="Crossbow"
  item__proto:t="%ugm/guns/crossbow.blk"
  item__weapTemplate:t="crossbow_gun"
  item__name:t="Crossbow"
  item__weapType:t="launcher"
  item__weight:r=4.5
  gun__locName:t="Crossbow"
  gun__statName:t="launcher"
  gun__shotFreq:r=0.6
  gun__automaticReload:b=no
  gun_spread__maxDeltaAngle:r=0.05
  gun_deviation__omegaRange:p2=30.0, 90.0
  gun_deviation__omegaDevInc:p2=0.1, 0.5
  gun_deviation__movementRange:p2=2.1, 4.0
  gun_deviation__movementDevInc:p2=0.0, 15.0
  gun_deviation__onShotDeviationChange:r=0.0
  gun_deviation__shotTau:r=0.1
  gun_deviation__extraDeviationTau:r=0.15
  gun_deviation__maxDeviation:r=15.0
  gun__integratedScope:b=yes
  gunmod__camNode:t="scope_view"
  gunmod__lensNode:t="lens_close"
  gunmod__crosshairNode:t="crosshair"
  gunmod__lensActive:b=yes
  gunmod__deviationMult:r=0.5
  gunmod__zoomFactor:r=1.5
  gunmod__camShiftMin:r=0.11
  gunmod__camShiftMax:r=0.23
  gunmod__camFovMin:r=56.0
  gunmod__camFovMax:r=25.0
  gunmod__focusPlaneShift:r=0.5
  gunmod__dofNearAmountPercent:r=50.0
  gunmod__dofFarAmountPercent:r=0.02
  gunmod__distortionParams:p3=0.8, 0.1, 0.07
  gun__reloadTime:r=4.5

  "isCameraAlwaysOnScope:tag"{
  }

  "item__id:i"{
    value:i=0
    _hide:b=yes
  }

  "gun__ammoHolders:array"{
    ammoHolders:t="crossbolt_he_bolt_item"
  }

  "gun__shells:array"{
    shells:t="%ugm/bullets/crossbow_he_bolt.blk"
  }

  "gun__firingModes:array"{

    "mode:object"{
      modeType:t="manual"
    }
  }

  "gun__firingModeNames:array"{
    mode:t="bolt_action"
  }
}
crossbow_gun_item{
  _use:t="item_gun"
  _use:t="crossbow"
  collres__res:t="crossbow_collision"
}
crossbow_gun{
  _use:t="equipable_gun"
  _use:t="disable_gun_attach_when_holstered"
  _use:t="launchers_ww2_preset"
  _use:t="crossbow"
  _use:t="gun_without_bipod"
  weap__sprintLerpFactor:r=1.0
  gun__length:r=0.4
  gun__recoilAmount:r=0.6
  gun__recoilDirAmount:r=0.8
  gun__recoilDir:r=0.0
  gun__visualRecoilMult:r=1.0
  gun__adsSpeedMult:r=0.8
  meleeSoundType:t="rifle"
  gun__shootNodeName:t="bullet"

  "gun_sound__shotPath:shared:object"{
    _tags:t="sound"
    path:t="/weapon/pistol/sturmpistole"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"

    "reload1:object"{
      path:t="/weapon/antivehicle/neiman_minethrower/reload1/change_ammo"
    }

    "reload2:object"{
      path:t="/weapon/antivehicle/neiman_minethrower/reload2/change_ammo"
    }

    "reload3:object"{
      path:t="/weapon/antivehicle/neiman_minethrower/reload3/change_ammo"
    }

    "reload4:object"{
      path:t="/weapon/antivehicle/neiman_minethrower/reload4/change_ammo"
    }
  }

  "gun__mountPoints:shared:array"{

    "point:object"{
      type:t="rest"
      recoil:r=-1.0
      offset:p3=0.615, -0.02, 0.04
    }
  }
}

crossbow_he_bolt{
  animchar__res:t="crossbow_ammo_char"
  collres__res:t="crossbow_ammo_collision"
}
crossbow_he_bolt_item{
  _use:t="item_grenade"
  _use:t="crossbow_he_bolt"
  item__template:t="crossbow_he_bolt_item"
  item__proto:t="%ugm/bullets/crossbow_he_bolt.blk"
  item__shell:t="%ugm/bullets/crossbow_he_bolt.blk"
  item__weight:r=0.9
  item__volume:r=0.6
  item__name:t="HE Bolt"
  item__grenadeType:t="shell"
  ammo_holder__id:i=-1
  ammo_holder__templateName:t="crossbow_he_bolt_itemw"
  ammo_holder__ammoCount:i=1
}
crossbow_he_bolt_phys{
  _use:t="projectile_phys"
  _use:t="crossbow_he_bolt"
  phys_obj_net_phys__blk:t="%ugm/bullets/crossbow_he_bolt.blk"
  shell_explosion_fx__infoTemplate:t=""
  shell__waterImpactFx:t="hit_water_medium_effect"

  "shell__concussionMaxRadius:r"{
    value:r=2.6
    _tags:t="server"
  }
}

and place the content of the zip ( Both folders ) inside your mod game folder
crossbow assets.zip (1.1 KB)

with that being said, #JusticeForBazsi37

7 Likes

Bazsi37 and other modders doing more work than the whole dev team once again

3 Likes