SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 15/02/2015, 09:21 PM   #11
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,896
Reputation: 1590
Default 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
Slice is offline   Reply With Quote
Old 15/02/2015, 09:58 PM   #12
PT
Godfather
 
PT's Avatar
 
Join Date: Nov 2012
Location: Portugal
Posts: 7,200
Reputation: 775
Default Re: weapon-config.inc - Damage system with many features

The health bar bigger is because the knife bug?

Nice work dude!
__________________
"Quem caiu e se levantou honrado era e honrado ficou..."


CVU vai voltar e.e


http://steamcommunity.com/id/pt_player/
PT is offline   Reply With Quote
Old 15/02/2015, 10:55 PM   #13
PaulDinam
Gangsta
 
Join Date: Jun 2011
Posts: 897
Reputation: 45
Default Re: weapon-config.inc - Damage system with many features

Using wide screen fix mod for gta sa will cause this:
PaulDinam is offline   Reply With Quote
Old 15/02/2015, 11:07 PM   #14
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,896
Reputation: 1590
Default 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?
Slice is offline   Reply With Quote
Old 15/02/2015, 11:12 PM   #15
PaulDinam
Gangsta
 
Join Date: Jun 2011
Posts: 897
Reputation: 45
Default Re: weapon-config.inc - Damage system with many features

I don't think so, this is an old ASI mod for GTA.
PaulDinam is offline   Reply With Quote
Old 15/02/2015, 11:15 PM   #16
Kyle
High-roller
 
Kyle's Avatar
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,390
Reputation: 314
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Slice View Post
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.
Kyle is offline   Reply With Quote
Old 15/02/2015, 11:24 PM   #17
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,896
Reputation: 1590
Default 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?
Slice is offline   Reply With Quote
Old 15/02/2015, 11:28 PM   #18
PaulDinam
Gangsta
 
Join Date: Jun 2011
Posts: 897
Reputation: 45
Default 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?
PaulDinam is offline   Reply With Quote
Old 15/02/2015, 11:40 PM   #19
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,856
Reputation: 602
Default 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.





Edit: My server keeps crashing, is it because it is 0.3.7? Also, the bar is pretty wide (tall).
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!

Last edited by Crayder; 16/02/2015 at 12:11 AM.
Crayder is offline   Reply With Quote
Old 16/02/2015, 12:19 AM   #20
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,896
Reputation: 1590
Default 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?
Slice is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with weapon damage system thanks JessThompson Scripting Help 7 15/07/2014 01:01 PM
[FilterScript] New Weapon Damage System [0.3z] RenSoprano Filterscripts 6 17/01/2014 06:03 AM
[FilterScript] Weapon damage system [v1.0] Darnell Filterscripts 74 21/10/2013 08:53 PM
[FilterScript] Weapon Damage System Donicans Filterscripts 14 06/11/2012 01:22 PM
[FilterScript] Realistic Weapon Damage And Death System [V1.0][New Cool FS] Nirzor Filterscripts 6 08/08/2012 05:34 AM


All times are GMT. The time now is 08:40 PM.


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