Jump to content

RPG aiming


Xwad

Recommended Posts

No i trying to change the tec 9 weapon shooting style(stance) to m4 shooting style but its wont work:(( pls help me somehow! I made thios script:

  
function stance() 
if weapon = 32 then 
setWeaponProperty ( 32,"pro","flag_aim_arm", true ) 
end 
addEventHandler( "onWeaponFire", root, stance ) 
  

Link to comment
  • Moderators

As I said before, you can't change the animation, because it is not supported. But you are not listening at all.

You can only change the aim method.

There is no specific stance for M4, there are multiple "flags" that you have to change in order to get that result.

And most of them are unavailable.

Link to comment
  • Moderators

This flag changes the way you aiming, which change partly how the animation must be. When those get changed, it will pick partly a default version of the animation. But this doesn't affect any specific information about this animation.

I can turn a tec9 to a way of shooting with an m4(or at least the camera). But I can't edit how this animation must look like.

Link to comment
  • Moderators

Well I am not going to test it for you. I was able to do it in the past, but I can't remember which aim property's to turn on and off.

Try this time to turn flag_aim_arm off.

setWeaponProperty ( 32,"pro","flag_aim_arm", false ) 
setWeaponProperty ( 32,"std","flag_aim_arm", false ) 
setWeaponProperty ( 32,"poor","flag_aim_arm", false ) 
  

And if that doesn't work, try to disable/enable "flag_aim_free" etc. till you find the right combination.

And make sure those are correct:

setWeaponProperty ( 32,"pro","flag_move_and_aim", true ) 
setWeaponProperty ( 32,"std","flag_move_and_aim", true ) 
setWeaponProperty ( 32,"poor","flag_move_and_aim", true ) 
  
setWeaponProperty ( 32,"pro","flag_move_and_shoot", true ) 
setWeaponProperty ( 32,"std","flag_move_and_shoot", true ) 
setWeaponProperty ( 32,"poor","flag_move_and_shoot", true ) 

Link to comment
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...