Jump to content

Weapon Aim Problem


Scooby

Recommended Posts

Posted

dm gamemode:

i have a problem with players aiming with rifles,

when they aim the crosshair comes up but the players weapon stays down by his hip,

and u cant strafe sideways while shooting.

i used to get this when i restarted my map with people in the server,

but after some changes, i cant get it to stop now.

just curious if anyone knew why this happens or any way to fix it.

i will try to find the problem but if anyone knows, it could save me some time.

Thanks in advance.

Posted
dm gamemode:

i have a problem with players aiming with rifles,

when they aim the crosshair comes up but the players weapon stays down by his hip,

and u cant strafe sideways while shooting.

i used to get this when i restarted my map with people in the server,

but after some changes, i cant get it to stop now.

just curious if anyone knew why this happens or any way to fix it.

i will try to find the problem but if anyone knows, it could save me some time.

Thanks in advance.

sorry, I could not understand can show me pictures?

Posted

i dont think a picture would help,

basically when u aim, the gun doesnt move up to his shoulder,

it stays on his hip.

Posted

Well, sounds like the players weapon stat's arn't set. When they are set to the max, then player can have the gun at solder fire rather than just hip fire. You could try something like:

setPedStat ( thePlayer, 78, 999 ) 

Posted

If you want to walk while aiming the gun, and faster swiming, then set the FPS limit to 50~60, or else they can't move.

The gun-problem is related to the weapon stats (setPedStat). Here are some stats:

Weapon skills:

Note: see the "Other" for the values that advance weapon skills.

69: WEAPONTYPE_PISTOL_SKILL 
70: WEAPONTYPE_PISTOL_SILENCED_SKILL 
71: WEAPONTYPE_DESERT_EAGLE_SKILL 
72: WEAPONTYPE_SHOTGUN_SKILL 
73: WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL 
74: WEAPONTYPE_SPAS12_SHOTGUN_SKILL 
75: WEAPONTYPE_MICRO_UZI_SKILL 
76: WEAPONTYPE_MP5_SKILL 
77: WEAPONTYPE_AK47_SKILL 
78: WEAPONTYPE_M4_SKILL 
79: WEAPONTYPE_SNIPERRIFLE_SKILL 
80: SEX_APPEAL_CLOTHES 
81: GAMBLING 

Other:

-- https://wiki.multitheftauto.com/wiki/We ... ill_levels --

Posted

ok guys thanks, i'll try it out and post back once ive tried it.

its strange because my gamemode was working just fine without setting any of those before.

he always had the gun in the right place unless i restarted the gamemode with people in the server. :roll:

Edit: wow, seems to have worked, nice one guys.

i wonder why i didnt need this for all the years ive had the server running :?:

Posted

silly me.. yes it looks like it could be defaultstats resource, i didnt run it this time.. so that could be why. my bad :S

the server is [uVA]RPG/DM Server, or should i say it was...

my host lost all my files, i have backups but im making some changes before i start it again.

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...