RSSy MYGO.pl Opublikowano Kwiecień 6, 2021 o 21:44 RSSy Udostępnij Opublikowano Kwiecień 6, 2021 o 21:44 this plugins hooks infected spawning functions and delegates it to plugins based on a config file plugin: https://github.com/arthurdead/sm-plu...oreinfected.sp gamedata: https://github.com/arthurdead/sm-plu...reinfected.txt for example you have a file like this: sourcemod/data/moreinfected.txt Code: "moreinfected" { "re_classiczombie" { "class_flags" "common" "chance" "20" "plugin" "re_npcs.smx" } "re_tyrant" { "class_flags" "tank|witch" "chance" "100" "plugin" "re_npcs.smx" } } every time a common infected is spawned the plugin will get a random entry from the file that has the "common" class_flags and will do a GetRandomInt if the random int is <= then the chance value from the entry a function named "{entryname}_spawn_common" will be called from then the plugin will do its logic otherwise it will just run the default game logic for special infected its the same deal except the function name is "{entryname}_spawn_special" plugins should not precache stuff OnMapStart but instead make a function named "{entryname}_precache" this plugin was mainly made to be used with this: https://forums.alliedmods.net/showthread.php?t=331025 heres a unfinished example: https://github.com/arthurdead/sm_npc...ing/re_npcs.sp Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi