RSSy MYGO.pl Opublikowano Październik 1, 2020 o 23:27 RSSy Udostępnij Opublikowano Październik 1, 2020 o 23:27 Description Allows both gnome and cola to do damage when shoving. Useful for some mutations gameplays. Features Allows to configure the damage applied. Allows to configure the damage type applied. Allows to force shove action when pressing the fire button. Allows to remove the shove penalty while holding a gnome/cola. Allows to enable friendly fire. Cvars A configuration file named "l4d2_gnome_n_cola_shove_dmg.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder. PHP Code: // Allow the cola to do shove damage. // 0 = OFF, 1 = ON. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_cola_shove_dmg_allow "1" // How much damage the cola does. // - // Default: "50" // Minimum: "0.000000" l4d2_cola_shove_dmg_damage "50" // Which kind of damage type the cola does. // Known values can be found here: https://developer.valvesoftware.com/wiki/Damage_types#Damage_type_table // Add numbers greater than 0 for multiple options. // Example: "136", enables DMG_CLUB and DMG_BURN. // - // Default: "128" // Minimum: "0.000000" l4d2_cola_shove_dmg_damagetype "128" // Allow the cola to do friendly fire. // 0 = OFF, 1 = ON. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_cola_shove_dmg_ff "0" // Remove the shove penalty while holding the cola. // Note: Can be exploited to remove melee penalty. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_cola_shove_dmg_noshovepenalty "0" // Force the client to shove the cola when press the attack button. // Note: This prevents the cola from being thrown. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_cola_shove_dmg_shoveonattack "1" // Enable/Disable the plugin. // 0 = Disable, 1 = Enable. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_gnome_n_cola_shove_dmg_enable "1" // Allow the gnome to do shove damage. // 0 = OFF, 1 = ON. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_gnome_shove_dmg_allow "1" // How much damage the gnome does. // - // Default: "50" // Minimum: "0.000000" l4d2_gnome_shove_dmg_damage "50" // Which kind of damage type the gnome does. // Known values can be found here: https://developer.valvesoftware.com/wiki/Damage_types#Damage_type_table // Add numbers greater than 0 for multiple options. // Example: "136", enables DMG_CLUB and DMG_BURN. // - // Default: "128" // Minimum: "0.000000" l4d2_gnome_shove_dmg_damagetype "128" // Allow the gnome to do friendly fire. // 0 = OFF, 1 = ON. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_gnome_shove_dmg_ff "0" // Remove the shove penalty while holding the gnome. // Note: Can be exploited to remove melee penalty. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_gnome_shove_dmg_noshovepenalty "0" // Force the client to shove the gnome when press the attack button. // Note: This prevents the gnome from being thrown. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_gnome_shove_dmg_shoveonattack "1" Admin Commands sm_print_cvars_l4d2_gnome_n_cola_shove_dmg => Print the plugin related cvars and their respective values to the console. (z flag required) Change Log Spoiler 1.0.0 (01-October-2020) - Initial release. Known issues The shove penalty can be exploited if the cvar is activated. Notes Enabling the "Shove on Attack" cvar, prevents the gnome/cola from being thrown. Hold "E" to drop. You can get a list of damage types and their values here sdkhooks.inc / Valve. To Do Add friendly fire factor. Better shove penalty handling. Maybe add GetUserFlagBits check. Thank you! Lukey1028 - for requesting. Alex Alcalá - for testing in his server. Silvers - for the Molotov Shove plugin which I used as basis. Related Plugins [L4D2] Healing Gnome by Silvers [L4D2] Healing Cola by Silvers [L4D2] Weapons Skins RNG by Marttt [L4D2] Weapons Skins RNG by Marttt Post Reply Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome. Installation Put the "l4d2_gnome_n_cola_shove_dmg.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder. Attached Files Get Plugin or Get Source (l4d2_gnome_shove_dmg.sp - 18.6 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi