Jump to content

How to increase FPSMeleeWeapon range ?


xtom
 Share

Recommended Posts

Does anyone know how to increase range of melee attacks in FPSMeleeWeapon.lua - I don't understand the Transform:Normal in the code below, I thought increasing the 0.5 might work but it doesn't seem to make any difference.

 

local pickinfo=PickInfo()
local pos = self.player.camera:GetPosition(true)
local dir = Transform:Normal(0,0,0.5,self.player.camera,nil)

if self.entity.world:Pick(pos,pos+dir,pickinfo,0,true,Collision.Projectile) then

Check out my games: One More Day / Halloween Pumpkin Run

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...