RSSy MYGO.pl Opublikowano Listopad 9, 2017 o 06:50 RSSy Udostępnij Opublikowano Listopad 9, 2017 o 06:50 Info This plugin allows you to spawn gifts so that players can collect them and earn points in addition to a special weapon in the event that a special gift is collected. Those special infected when dying sometimes spawn gifts Two types of gifts: Standard and Special The life of the gift normally lasts 60 seconds, after that it will disappear The gifts rotate on their own axis Different gift models are spawned with colors and aura (the models can be found in the file "data/l4d2_gifts.cfg") The type, model and scala of the gift are configured in the file "data / l4d2_gifts.cfg" (Not all models of l4d2 accept scale). There is probability of spawning of gifts of each type and in general, configurable by cvars. The points and life of the gift are configurable by cvars Console commands to see how many points you have won and how many gifts you have collected per map and round. The database can be the same one you have for the statistics of the player or a new one, in the case of the second it must be added to the databases.cfg file (Currently I have worked with the database l4dstats of the plugin https: // forums .alliedmods.net / showthread.php? t = 115965) If you want to put your own database, you can modify the plugin to your liking. Reload the file (data / l4d2_gifts.cfg) by means of a command CommandsConsole Commands: sm_giftpoints/sm_giftp: View points for gifts collected sm_giftcollect/sm_giftc: View number of gifts collected Admin Commands: sm_gift: Spawn a gift in your position sm_reloadgifts: Reload the config file of gifts (data/l4d2_gifts.cfg) Cvars: Saved to l4d2_gifts.cfg in your servers \cfg\sourcemod\ folder. Code: // Chance (%) of infected drop gift. // - // Default: "30" // Minimum: "1.000000" // Maximum: "100.000000" l4d2_gifts_chance "10" // Enable gifts 0: Disable, 1: Enable // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_gifts_enabled "1" // How long the gift stay on ground (seconds) // - // Default: "60" // Minimum: "0.000000" l4d2_gifts_giflife "60" // Points for take a gift standard (animals and other objects) // - // Default: "10" // Minimum: "1.000000" l4d2_gifts_pointsE "10" // Points for take a gift special // - // Default: "20" // Minimum: "1.000000" l4d2_gifts_pointsS "20" // Probability for gifts standard (animals and other objects) with respect to chance of infected drop gift. // - // Default: "80" // Minimum: "1.000000" // Maximum: "100.000000" l4d2_gifts_probabilityE "92" // Probability for gift special with respect to chance of infected drop gift. // - // Default: "20" // Minimum: "1.000000" l4d2_gifts_probabilityS "8" Requirements: This plugin requires the SMLIB Colors API (https://forums.alliedmods.net/showthread.php?t=148387) This plugin requires the file l4d_stocks.inc (is included in the zip file to download). Installation: Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.Change Log: Code: 1.3.2 (05-November-2017) - Added array's Client's Gifts Points (CurrentPointsForMap & CurrentPointsForRound) - Added dimensional array's Client's Gifts Number (CurrentGiftsForMap && CurrentGiftsForRound) - Added array's Client's Gifts Total (CurrentGiftsTotalForMap && CurrentGiftsTotalForRound) - Added command "sm_giftpoints" alias "sm_giftp" for players to view points for gifts collected in the current map and current round. - Added command "sm_giftcollect" alias "sm_giftc" for players to view the number for gifts collected in the current map and current round specific for type the gift. 1.3.1 (04-October-2017) - Added translations, required for the spawn gifts - Fixed the name of weapons for print to chat when spawn gifts 1.3 (03-October-2017) - Added a config file for the gifts "l4d2_gifts" replacing the definitions. Here you specify the path and model type, and the type of gift whether standard or special. - Changed cvar l4d2_gifts_pointsA for l4d2_gifts_pointsE - Fixed the gifts with models not physic that did not show up - Added OnPlayerRunCmd forward when a survivor presses +USE on gifts static. - Added command "sm_reloadgifts" for reloads the settings from the config file "l4d2_gifts" - Added cvar "l4d2_gifts_probabilityE" to the probability for gifts standard (animals and other objects) with respect to chance of infected drop gift. (Chance of infected drop gift represents 100% of these). - Added cvar "l4d2_gifts_probabilityS" to the probability for gift special with respect to chance of infected drop gift. - Added definition MAX_GIFTS to set the maximum of gifts. 1.2.1 (19-July-2017) - Added weapons to the gifts square for give to the player when he catches the gifts 1.2 (01-June-2017) - Added cvar "l4d2_gifts_pointsA" to the points for take a gift (animals and other objects). - Added cvar "l4d2_gifts_pointsS" to the points for take a gift square. - Added sound for gifts animals and gifts square when these are caught - Added the config file that should be executed after plugin load. - Added the databases config to the points of the gifts - Added a hook for when the console variables values is changed. 1.1 (15-March-2017) - Added command "sm_gift" for admins to spawn gifts. Used for the developer. - Added cvar "l4d2_gifts_enabled" to toggle to turn on or off the gifts. - Added cvar "l4d2_gifts_giflife" to the time that the gift stay on ground in seconds. - Added cvar "l4d2_gifts_chance" to the chance (%) of infected drop gift. - Added TAG CHAT for PrintChatToAll to the gifts spawned 1.0 (20-January-2017) - Initial release. Current Translations: English (en), Spanish (es). Attached Files Get Plugin or Get Source (l4d2_gifts.sp - 28.5 KB) l4d2_gifts.zip (114.9 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się