HungerGames

Approved HungerGames 1.6.0b

No permission to download

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
It would be nice to add double teleport when you do (/hg join - /hg leave) or when an admin does /hg disable, or when a player dies and does reespawn ..... to prevent players from falling under fundations .... Also add The exclusion detection of dizzy EAC.

An example is when a player does /hg join from the 8th floor of his house, ending hunger games is very likely to die from the fall.

Another example is the possibility of being able to enter inside houses by doing /hg join - /hg leave ....
 

DFM Москва 101.2

Member
Member
Aug 23, 2016
66
-2
6
28
Parts Unknown
It would be nice to add double teleport when you do (/hg join - /hg leave) or when an admin does /hg disable, or when a player dies and does reespawn ..... to prevent players from falling under fundations .... Also add The exclusion detection of dizzy EAC.

An example is when a player does /hg join from the 8th floor of his house, ending hunger games is very likely to die from the fall.

Another example is the possibility of being able to enter inside houses by doing /hg join - /hg leave ....
It's easier to forbid the teleportation of physical objects....
 

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
If you disable the HungerGames manually the players still keep their HG inventory and can get away with the stuff.
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Known bugs that need to be fixed:

I want to focus on the Double teleport, if you do not use LegitRaid or something similar, it is very likely that your players can enter inside the houses doing /hg join and /hg leave when a Hg is active.

1- Double teleport when a player makes /hg join
2- Double teleport when a player makes /hg leave
3- When an admin does /hg disable for any reason, the players that are InGame are not returned their Inventory, they need to do /hg inventory and neither are returned with double teleport.This situation is very annoying to them because they believe that they have lost their invention and enter into a spiral of RAGE xd!
4- If an InGame player is kicked or disconnected, and, he connects in time .. he is returned to his original location, but stays InGame. (Note: this does not happen in the version (1.5.3 of hg)
5- Adding DataStore.Flush ("HGIG") at https://github.com/dretax/Python-Plugins/blob/master/FougeritePlugins/HungerGames/HungerGames.py#L195, the reason is that if the server crashes Or off during hg, players are left in a limbo and can not use TP because in DataStore it contains their ID - (Reference to https://github.com/dretax/Python-Plugins/blob/master/FougeritePlugins/TpFriend/TpFriend .py # L275-L276)
6- For some reason that I have not been able to identify some players who win, they die when they are returned, possibly this happens when they do /hg join up a great rock in the mountain? , Are also not returned with Double Teleport.

There are some more errors at the moment of checking the walls during the load ... I still have not found when this happens ...

It would be nice to repair this since fougerite is the only one that has this wonderful plugin .... Regards
 
Last edited:
  • Informative
  • Like
Reactions: Assassin and DreTaX

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Known bugs that need to be fixed:

I want to focus on the Double teleport, if you do not use LegitRaid or something similar, it is very likely that your players can enter inside the houses doing /hg join and /hg leave when a Hg is active.

1- Double teleport when a player makes /hg join
2- Double teleport when a player makes /hg leave
3- When an admin does /hg disable for any reason, the players that are InGame are not returned their Inventory, they need to do /hg inventory and neither are returned with double teleport.This situation is very annoying to them because they believe that they have lost their invention and enter into a spiral of RAGE xd!
4- If an InGame player is kicked or disconnected, and, he connects in time .. he is returned to his original location, but stays InGame. (Note: this does not happen in the version (1.5.3 of hg)
5- Adding DataStore.Flush ("HGIG") at https://github.com/dretax/Python-Plugins/blob/master/FougeritePlugins/HungerGames/HungerGames.py#L195, the reason is that if the server crashes Or off during hg, players are left in a limbo and can not use TP because in DataStore it contains their ID - (Reference to https://github.com/dretax/Python-Plugins/blob/master/FougeritePlugins/TpFriend/TpFriend .py # L275-L276)
6- For some reason that I have not been able to identify some players who win, they die when they are returned, possibly this happens when they do /hg join up a great rock in the mountain? , Are also not returned with Double Teleport.

There are some more errors at the moment of checking the walls during the load ... I still have not found when this happens ...

It would be nice to repair this since fougerite is the only one that has this wonderful plugin .... Regards
Up you go:

https://github.com/dretax/Python-Plugins/blob/7036257e2a26e93c31cb2783de6f89489c202dd4/FougeritePlugins/HungerGames/HungerGames.py

Try that, added db teleportatin, and the flush part, also a notice message for the inventory. Also added a safetycheck.
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Up you go:

https://github.com/dretax/Python-Plugins/blob/7036257e2a26e93c31cb2783de6f89489c202dd4/FougeritePlugins/HungerGames/HungerGames.py

Try that, added db teleportatin, and the flush part, also a notice message for the inventory. Also added a safetycheck.
Thank you very much, for a long time I expected the double tp, otherwise everything works correctly !!

I suggest in second but in teleport for slower computers when loading structures Plugin.CreateParallelTimer ("DoubleTeleport", xtime * 2000, List) .Start () ... but it is not too important.

There are times when I can not find the walls during the load and stops at 50%, I'll let you know in detail when I can confirm how and when this happens ... but for the moment I can only speculate on this.

Regards
 
  • Informative
Reactions: DreTaX

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
  • Agree
Reactions: DreTaX

gintaras

Plugin Developer
Plugin Developer
Jan 10, 2017
68
138
8
BUG : if player is on ceiling and comes back from game its get trow ceiling...
 

Assassin

Plugin Developer
Plugin Developer
Apr 9, 2017
190
196
43
26
Iran
Some Problems are here!!
1-When a Player Disconnect Until Game Is Playing and he doesn't Rejoin in the 1 minute,He Will Stay In The Map and He Can Kill another Players But He Does't Die!
2-When there is some broken items in your Inventory They will be fixed after the game!!gun ammos and slots will be removed after Game!There is anyway to disable /hg invetory ?Becuse Inventory system has 2 bugs and players can fix their broken items with it!!
 
  • Informative
Reactions: DreTaX

Assassin

Plugin Developer
Plugin Developer
Apr 9, 2017
190
196
43
26
Iran
Can You add this option to settings.ini to Enable/Disable InventoryGiveBack ???
Also if you do not use LegitRaid or something similar, it is very likely that your players can enter inside the houses doing /hg join and /hg leave when a Hg is active.
It is Better To Spawn Player From Their Sleeping Bag/Bed After Game if Players Doesn't have any sleeping bag/bed he/she will spawn in random spawn points!
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Can You add this option to settings.ini to Enable/Disable InventoryGiveBack ???
Also if you do not use LegitRaid or something similar, it is very likely that your players can enter inside the houses doing /hg join and /hg leave when a Hg is active.
It is Better To Spawn Player From Their Sleeping Bag/Bed After Game if Players Doesn't have any sleeping bag/bed he/she will spawn in random spawn points!
I remember having a solution on my server for that ..using OverlapSphere before doing / hg join

The code to include would be this:
Python:
Objects = Physics.OverlapSphere (Player.Location, 6)
                     For x in objects:
                         If "meshbatch" in x.name.lower ():
                             Player.MessageFrom (sysname, red + "ERROR: -------- You must be away from any structure --------")
                             Return
And everything solved, @DreTaX already knows this solution for several months ago, but lately it is very busy with the exams .... keep calm and soon update it ,,, maybe !!, otherwise you can try to learn python and Include it yourself ... greetings !!
 
  • Like
Reactions: Assassin