What gives SetPlayerSkillLevel?
#1

Hi.
Today i found a new for me function - SetPlayerSkillLevel, and i wanna get more information (maybe with examples), because i don't understand what gives this function.
I tried to set different values (with Desert Eagle), but did not notice any difference...
Код:
// Change Desert Eagle skill level to min value
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 0);

// Change Desert Eagle skill level to medium value
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 500);

// Change Desert Eagle skill level to max value
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
What changes in the behavior of the weapons or characteristics? Damage? Accuracy? Speed? Or something else?
Thanks for answers.
Reply
#2

Damage, accuracy, rate-of-fire, and if you can move and shoot at the same time are what changes.
Reply
#3

2KY, thanks for fast reply.
Maybe you know how much appends damage, accuracy and rate-of-fire for each skill level? Or maybe between two value? (0-99, 100-199 etc).

And thanks, now i see different between 0, 500 and 999.
When value is 0, you can shot only from place and can't move, also if you run, you can't even aim
When value is 500, you can aim when run, but can't move when shot
When value is 999, you can aim and shot when run
Reply
#4

I'm really not too sure about the values themselves, just make a command in-game to set your skill-level and test it out!
Reply
#5

The values (well, the 'gangster' level one - hitman is always 999 and poor is always 0) vary from weapon to weapon, and can be found in data\weapon.dat in your GTA:SA directory, here's an example:


$ SAWNOFF INSTANT_HIT 25.0 30.0 350 -1 3 sawnoff 2 10 0.56 0.0 0.15 0 0 0.7 1.0 6 15 6 6 15 6 30 3033
$ SAWNOFF INSTANT_HIT 30.0 35.0 350 -1 3 sawnoff 2 10 0.56 0.0 0.15 1 200 0.8 1.1 6 15 6 6 15 6 30 3033
$ SAWNOFF INSTANT_HIT 35.0 35.0 350 -1 3 sawnoffpro 4 10 0.56 0.0 0.15 2 999 0.9 1.3 6 15 6 6 15 6 30 3833

Values are poor, gangster and hitman.

As for what they all do, I compiled a list a while ago:

9mm
40: Increased ROF and improved accuracy
999: Duel wield

Silenced
500: Strafe faster, increased ROF and improved accuracy
999: Increased ROF, strafe faster

Deagle
200: Improved accuracy, strafe faster, increased ROF
999: Improved accuracy, strafe faster and whilst firing

Shotgun
200: Improved accuracy and strafe faster
999: Improved accuracy, strafe faster and whilst firing

Sawnoff
200: Improved accuracy
999: Duel wield + increased ROF

Spas 12
200: Improved accuracy, increased ROF, strafe faster
999: Improved accuracy, strafe faster and whilst firing

Uzi
50: Improved accuracy
999: Duel wield, increased ROF

Tec9
50: Improved accuracy
999: Duel wield, increased ROF

MP5
250: Improved accuracy, strafe faster
999: Strafe faster and whilst firing

AK47
200: Improved accuracy, strafe faster
999: Improved accuracy, strafe faster and whilst firing

M4
200: Improved accuracy, strafe faster
999: Improved accuracy, strafe faster and whilst firing

Some things may be missing though.
Reply
#6

not to forget that a high skill level turns some weapons from doublehanded into singlehanded (double=needs two hands to hold a weapon like sawnoff, tec9, tec, while single makes it needs only 1 hand=2 weapons, so the player shoots 2 bullets in the same time now - no need to reload until the double amount of bullets are being fired)...
oh, this thread gave me the idea for my zombie script: a certain pickup raises up the players' weapon skill level for the weapon he is holding in that very moment, in small steps like 50 or 100 only hehehe
edit: thanks all for doing the dirty work, i only need to convert it to pawn code now. good morning
Reply
#7

MP2, big thanks, your post is very helpful for my situation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)