SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 27/10/2015, 09:59 AM   #351
Slice
High-roller
 
Join Date: Mar 2008
Posts: 1,831
Reputation: 1607
Default Re: weapon-config.inc - Damage system with many features

What crayder said applies for older versions. It should work without problems, but you may be doing something to cause it.

Do you use ForceClassSelection?

Do you use OnPlayerRequestClass in a filterscript?
Slice is offline   Reply With Quote
Old 27/10/2015, 03:33 PM   #352
MartinSwag
Little Clucker
 
MartinSwag's Avatar
 
Join Date: Aug 2015
Location: The Netherlands
Posts: 40
Reputation: 2
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Slice View Post
What crayder said applies for older versions. It should work without problems, but you may be doing something to cause it.

Do you use ForceClassSelection?

Do you use OnPlayerRequestClass in a filterscript?
That is odd, I don't force class selection, nor do I have any callbacks for it in my filterscript (only using Simon's debug). I tried loading up the default grand larceny server, and the issue didn't occur. The only thing I can think of that may be causing this is my login and registration system. I use SetSpawnInfo and SpawnPlayer afer they login/register. Could this be causing the issue?
MartinSwag is offline   Reply With Quote
Old 28/10/2015, 02:24 PM   #353
Slice
High-roller
 
Join Date: Mar 2008
Posts: 1,831
Reputation: 1607
Default Re: weapon-config.inc - Damage system with many features

Enable debug and show me the output.
pawn Code:
#define WC_DEBUG true
#include <weapon-config>
Slice is offline   Reply With Quote
Old 29/10/2015, 09:30 PM   #354
MartinSwag
Little Clucker
 
MartinSwag's Avatar
 
Join Date: Aug 2015
Location: The Netherlands
Posts: 40
Reputation: 2
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Slice View Post
Enable debug and show me the output.
pawn Code:
#define WC_DEBUG true
#include <weapon-config>
Code:
[15:27:31] [connection] 127.0.0.1:49541 requests connection cookie.
[15:27:32] [connection] incoming connection: 127.0.0.1:49541 id: 0
[15:27:33] [join] Admin has joined the server (0:127.0.0.1)
(player spawned)
(player used /v hunter)
(player entered hunter, blew self up)
[15:27:56] (wc) OnPlayerDeath(0 died by 255 from 65535)
[15:27:56] (wc) OnPlayerDamageDone(65535 did 200.000000 to 0 with 51 on bodypart 0)
[15:27:59] (wc:0) Requested class: 0
[15:27:59] (wc:0) True death class selection
MartinSwag is offline   Reply With Quote
Old 10/11/2015, 12:49 PM   #355
ajwar
Huge Clucker
 
Join Date: May 2009
Location: Norway
Posts: 321
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

is it possible to hide health bar ?
ajwar is offline   Reply With Quote
Old 10/11/2015, 04:01 PM   #356
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by ajwar View Post
is it possible to hide health bar ?
Yeah, just remove it from the code...
Crayder is offline   Reply With Quote
Old 10/11/2015, 04:03 PM   #357
Slice
High-roller
 
Join Date: Mar 2008
Posts: 1,831
Reputation: 1607
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by ajwar View Post
is it possible to hide health bar ?
No, not without modifying the include.

Quote:
Originally Posted by MartinSwag View Post
Code:
[15:27:31] [connection] 127.0.0.1:49541 requests connection cookie.
[15:27:32] [connection] incoming connection: 127.0.0.1:49541 id: 0
[15:27:33] [join] Admin has joined the server (0:127.0.0.1)
(player spawned)
(player used /v hunter)
(player entered hunter, blew self up)
[15:27:56] (wc) OnPlayerDeath(0 died by 255 from 65535)
[15:27:56] (wc) OnPlayerDamageDone(65535 did 200.000000 to 0 with 51 on bodypart 0)
[15:27:59] (wc:0) Requested class: 0
[15:27:59] (wc:0) True death class selection
Do you ever use AddPlayerClass? Do you use weapon-config in a filterscript or the gamemode?
Slice is offline   Reply With Quote
Old 10/11/2015, 04:50 PM   #358
MartinSwag
Little Clucker
 
MartinSwag's Avatar
 
Join Date: Aug 2015
Location: The Netherlands
Posts: 40
Reputation: 2
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Slice View Post
No, not without modifying the include.


Do you ever use AddPlayerClass? Do you use weapon-config in a filterscript or the gamemode?
I use AddPlayerClass once and I use the plugin in the gamemode and don't have any filterscripts.
MartinSwag is offline   Reply With Quote
Old 10/11/2015, 05:33 PM   #359
ajwar
Huge Clucker
 
Join Date: May 2009
Location: Norway
Posts: 321
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

1) is it possible to create cmd to remove healthbar ?

2) How to reduce damage for SPAZ ?

Tryed

pawn Code:
SetWeaponDamage(
        27,
        DAMAGE_TYPE_STATIC,
        13.5
    );

But with this code the damage was bigger. ~100hp single bullet.

Last edited by ajwar; 11/11/2015 at 12:16 PM.
ajwar is offline   Reply With Quote
Old 14/11/2015, 09:53 AM   #360
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,709
Reputation: 489
Default Re: weapon-config.inc - Damage system with many features

I have noticed something with this include.
It works fine, However it messes up the team. If i included this on my script, the GetPlayerTeam doesn't work at all (I have coded an objective system which places their camera on their objective before letting them spawn.) If i included this, That system doesn't work at all. While if i removed this include, it works perfectly.

Any idea why? (My gamemode uses the SetPlayerTeam & GetPlayerTeam function)
__________________
Discord: Cipher#7353
__________________


Server IP: Click me | Discord: Click me

You challenged us, What you want is what you get.
JaKe Elite 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 10:31 PM.


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