SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Includes (https://forum.sa-mp.com/forumdisplay.php?f=83)
-   -   [Include] weapon-config.inc - Damage system with many features (https://forum.sa-mp.com/showthread.php?t=563387)

Slice 15/02/2015 09:21 PM

Re: weapon-config.inc - Damage system with many features
 
It took quite a while to develop, since I didn't stop until the animations looked perfect! Though I still have some more things I want to add.

Binaries will be officially released for SKY soon.

In the mean time, try this: http://server.ulclan.com/SKY.so

PT 15/02/2015 09:58 PM

Re: weapon-config.inc - Damage system with many features
 
The health bar bigger is because the knife bug?

Nice work dude!

PaulDinam 15/02/2015 10:55 PM

Re: weapon-config.inc - Damage system with many features
 
Using wide screen fix mod for gta sa will cause this:
http://i.imgur.com/Z4NpxMQ.png

Slice 15/02/2015 11:07 PM

Re: weapon-config.inc - Damage system with many features
 
How exactly does wide screen need to be fixed?

Either way, is there a way to detect that mode by reading the camera mode or vectors?

PaulDinam 15/02/2015 11:12 PM

Re: weapon-config.inc - Damage system with many features
 
I don't think so, this is an old ASI mod for GTA.

Kyle 15/02/2015 11:15 PM

Re: weapon-config.inc - Damage system with many features
 
Quote:

Originally Posted by Slice (Post 3372331)
How exactly does wide screen need to be fixed?

Either way, is there a way to detect that mode by reading the camera mode or vectors?

GetPlayerCameraAspectRatio.

Will return 0.0000 for WIDESCREEN and 0.333333 for NON-WIDESCREEN.

Slice 15/02/2015 11:24 PM

Re: weapon-config.inc - Damage system with many features
 
He's talking about some CLEO, which by the way makes you impossible to hit on non-lagcomp servers and fucks up rocket launcher shoot vectors.

I suppose the aspect ratio should be another value for it. Could someone look into that?

PaulDinam 15/02/2015 11:28 PM

Re: weapon-config.inc - Damage system with many features
 
1.776470 is returned when using this CLEO mod, you think perhaps you could modify the include to detect whether a player is using it or not?

Crayder 15/02/2015 11:40 PM

Re: weapon-config.inc - Damage system with many features
 
Since you create a custom bar, I think you could add a define for the color. Like WC_HEALTH_COLOR. By default it'd be the normal color.

Or, you could use this color array and set the bar to (floatround(health)-1).

pawn Code:
new RGY[100] =
{
    0xFF0000FF,0xFF0500FF,0xFF0A00FF,0xFF0F00FF,0xFF1400FF,0xFF1900FF,0xFF1E00FF,0xFF2300FF,0xFF2800FF,0xFF2D00FF,
    0xFF3300FF,0xFF3800FF,0xFF3D00FF,0xFF4200FF,0xFF4700FF,0xFF4C00FF,0xFF5100FF,0xFF5600FF,0xFF5B00FF,0xFF6000FF,
    0xFF6600FF,0xFF6B00FF,0xFF7000FF,0xFF7500FF,0xFF7A00FF,0xFF7F00FF,0xFF8400FF,0xFF8900FF,0xFF8E00FF,0xFF9300FF,
    0xFF9900FF,0xFF9E00FF,0xFFA300FF,0xFFA800FF,0xFFAD00FF,0xFFB200FF,0xFFB700FF,0xFFBC00FF,0xFFC100FF,0xFFC600FF,
    0xFFCC00FF,0xFFD100FF,0xFFD600FF,0xFFDB00FF,0xFFE000FF,0xFFE500FF,0xFFEA00FF,0xFFEF00FF,0xFFF400FF,0xFFF900FF,
    0xFFFF00FF,0xF9FF00FF,0xF4FF00FF,0xEFFF00FF,0xEAFF00FF,0xE4FF00FF,0xDFFF00FF,0xDAFF00FF,0xD5FF00FF,0xD0FF00FF,
    0xCAFF00FF,0xC5FF00FF,0xC0FF00FF,0xBBFF00FF,0xB6FF00FF,0xB0FF00FF,0xABFF00FF,0xA6FF00FF,0xA1FF00FF,0x9CFF00FF,
    0x96FF00FF,0x91FF00FF,0x8CFF00FF,0x87FF00FF,0x82FF00FF,0x7CFF00FF,0x77FF00FF,0x72FF00FF,0x6DFF00FF,0x68FF00FF,
    0x62FF00FF,0x5DFF00FF,0x58FF00FF,0x53FF00FF,0x4EFF00FF,0x48FF00FF,0x43FF00FF,0x3EFF00FF,0x39FF00FF,0x34FF00FF,
    0x2EFF00FF,0x29FF00FF,0x24FF00FF,0x1FFF00FF,0x1AFF00FF,0x14FF00FF,0x0FFF00FF,0x0AFF00FF,0x05FF00FF,0x00FF00FF
};

100 colors, fade from green to yellow to red. :D





Edit: My server keeps crashing, is it because it is 0.3.7? Also, the bar is pretty wide (tall).

Slice 16/02/2015 12:19 AM

Re: weapon-config.inc - Damage system with many features
 
0.3.7 is not supported by SKY yet. I'll deal with it as fast as I can.

Could you attach gdb to the process and print a backtrace of the crash?


All times are GMT. The time now is 06:20 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.