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)

Tamer 23/03/2015 09:46 PM

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

Originally Posted by Slice (Post 3411727)
You can see all the functions available here: https://github.com/oscar-broman/samp...nfig#functions

Ah fu how did I miss that. I'll check the documentation further.

Tamer 24/03/2015 08:00 PM

Re: weapon-config.inc - Damage system with many features
 
Is there a way to disable the custom death anims?

I noticed after spectating or sometimes death, you die and respawn at the place you died, then die again and respawn at your usual spawn point. (And this also happens sometimes at usual deaths)

If you set a player's position up high at a position (Setting a player's Z point high above) and watching them fall, they don't lose damage.

Does that-sync related function actually fix desync issues? (SetDisableSyncBugs) We intentionally tried to desync my friend (not through knife bug) and he didn't get desynced even with getting 600+ ping. He usually got desynced when he did this.

Slice 28/03/2015 01:00 PM

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

Is there a way to disable the custom death anims?
No. Feel free to add that and submit a pull request if you want that.

Quote:

I noticed after spectating or sometimes death, you die and respawn at the place you died, then die again and respawn at your usual spawn point. (And this also happens sometimes at usual deaths)
Check GitHub for similar problems, create an issue if you don't find one.

Quote:

If you set a player's position up high at a position (Setting a player's Z point high above) and watching them fall, they don't lose damage.
Use the default fall damage system until the custom one is improved.

Quote:

Does that-sync related function actually fix desync issues? (SetDisableSyncBugs) We intentionally tried to desync my friend (not through knife bug) and he didn't get desynced even with getting 600+ ping. He usually got desynced when he did this.
It doesn't fix all sync bugs in some magic way. It's a way to toggle some features in SKY. The things it will disable is mostly slide bugs (not the normal slide bug) and infinite shooting. It's more useful for servers without lagcomp.

rickisme 28/03/2015 03:25 PM

Re: weapon-config.inc - Damage system with many features
 
i got this when type exit on server console :

pawn Code:
[22:23:21] [debug] Server crashed while executing new.amx
[22:23:21] [debug] AMX backtrace:
[22:23:21] [debug] #0 native fread () from samp-server.exe
[22:23:21] [debug] #1 000543d8 in public WC_OnGameModeExit () at E:\work\rgame40\gamemodes\new.pwn:398
[22:23:21] [debug] #2 0002b0f4 in ?? () at E:\work\rgame40\Pawno\include\weapon-config.inc:1790
[22:23:21] [debug] #3 0000e970 in public ScriptInit_OnGameModeExit () at E:\work\rgame40\Pawno\include\YSI\y_hooks/impl.inc:516
[22:23:21] [debug] #4 000070b4 in public OnGameModeExit () at E:\work\rgame40\Pawno\include\YSI\internal\..\y_scriptinit.inc:269
[22:23:21] [debug] Native backtrace:
[22:23:21] [debug] #0 77acea02 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[22:23:21] [debug] #1 004943b0 in ?? () from samp-server.exe
[22:23:21] [debug] #2 004949e0 in ?? () from samp-server.exe
[22:23:21] [debug] #3 00404f14 in ?? () from samp-server.exe

Slice 28/03/2015 03:46 PM

Re: weapon-config.inc - Damage system with many features
 
The problem is in your gamemode:
Quote:

E:\work\rgame40\gamemodes\new.pwn:398

KubiPL 29/03/2015 07:45 AM

Re: weapon-config.inc - Damage system with many features
 
Please make ability to set respawn time greather than 5 secounds.

vermaritt 29/03/2015 08:07 AM

Re: weapon-config.inc - Damage system with many features
 
To KubiPL, There is already a function for this, "SetRespawnTime(ms)".

KubiPL 29/03/2015 09:28 AM

Re: weapon-config.inc - Damage system with many features
 
As I did, I've changed respawn time in preparedeath callback, but player respawns immediately.
Also there is in code default respawn time which is 6s set in OnPlayerDeath hook.
Did anyone tried set the respawn time in OnPrepareDeath greater than 6s?

//Edit: My bad, I was setting the respawn time in seconds but its ms.

Slice 29/03/2015 09:38 AM

Re: weapon-config.inc - Damage system with many features
 
Also, if you return 0 in OnPlayerDeathFinished, the player will keep lying down on the ground.

KubiPL 29/03/2015 10:10 AM

Re: weapon-config.inc - Damage system with many features
 
How about stopping player active death? When player is lying on the ground for the next 1 min and I want to get him up. Doing it without spawning player, but only with giving him back some health, and applying get up animation, like this.


All times are GMT. The time now is 05:55 AM.

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