Grenade / Projectile ViewVersion 1.5Table of Contents----------------------------------------------------DescriptionCommands and CvarsInstallationDependenciesCommand OverridesCreditsChangelogNotesDownloadDescription----------------------------------------------------View a projectile or thrown grenade's flight from the projectile's perspective.This is a great tool for training with grenades and other projectiles.Players can look around in-flight to get a better understanding of the projectile's surroundings and trajectory.YouTube demonstration: Commands and Cvars----------------------------------------------------Commandssm_projectile_view [sm_projectileview, sm_grenade_view, sm_grenadeview] - Toggle projectile view (on a per-client basis).Cvarssm_projectile_view_auto_update (Default 1) Automatically update plugin (requires Updater)sm_projectile_view_version Plugin version.sm_projectile_view_enable (Default 1) Enable plugin (1 - enable, 0 - disable)sm_projectile_view_default (Default 1) Enable projectile view by default (1 - projectile view, 0 - default view)sm_projectile_view_replace_nade (Default 1) CS Only: Gives the player another grenade after the nade is thrown (1 - extra nades, 0 - no nades)Installation----------------------------------------------------If you haven't already, install the latest version of SDKHooks.Place projectile_view.smx into your /addons/sourcemod/plugins directory.Place projectile_view.phrases.txt into your /addons/sourcemod/translations directory.Dependencies----------------------------------------------------SDKHooksCommand Overrides----------------------------------------------------sm_projectile_view - Determines if client can toggle projectile view. You don't need to set overrides for the other command variants (e.g. this also determines access for the sm_grenade_view command).You can use admin_groups.cfg or admin_overrides.cfg to change command permissions.Example admin_overrides.cfg: Code: Overrides{ "sm_projectile_view" "bc"}In this example, only admins that have both "b" and "c" admin flags can use !projectileview.Credits----------------------------------------------------
- cubuspl42 for suggesting the idea here.
- Zephyrus for help with multi-game compatibility.
- RedSword for many suggestions on cleaning up and optimizing the code.
- 1.0 (30 December 2012)-Initial version (CS:S / CS:GO)
- 1.1 (30 December 2012)-Compatibility: Plugin now works with any game.
- 1.2 (30 December 2012)-Bug fix: Replacement nades weren't being awarded.-View is now restored on smokegrenade detonate instead of dissipate.
- 1.3 (31 December 2012)-Added Updater support.-Added client commands to toggle projectile view.-Improved support for some TF2 projectiles (possibly).-Code optimizations.
- 1.4 (1 January 2013)-Toggling projectile view off now reverts your view immediately.
- 1.5 (2 January 2012)-Added translations support.-Bug fix: Invalid check if many clients were connected.-Bug fix: Invalid command erroneously reported for the view toggle.
- None at the moment.
- The plugin works for all grenades and projectiles.
- Convar sm_projectile_view_replace_nade only works with CS:S and CS:GO.
- The plugin was tested with CS:GO, let me know how it works with other games!



Wyświetl pełny artykuł