Description
This plugin turns the camera into selfie mode.
When the character moves, the camera is turned off.
Based on the L4D2 Workshop Addon
Selfie Camera by
Sw1ft.
Features
- Allow configuring a default distance for the selfie camera.
- Allow configuring a maximum distance for the selfie camera.
- Allow clients manually set their camera distance. (through sm_selfie [distance] command)
Preview
Cvars
A configuration file named "
l4d_selfie_camera.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Default distance from client when enable the selfie camera.
// -
// Default: "50"
// Minimum: "0.000000"
l4d_selfie_camera_distance "50"
// Max distance from client when enable the selfie camera.
// 0 = Unlimited.
// -
// Default: "150"
// Minimum: "0.000000"
l4d_selfie_camera_distance_max "150"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_selfie_camera_enable "1"
Public Commands
- sm_selfie [distance] => Change the camera to the selfie mode.
Admin Commands
- sm_print_cvars_l4d_selfie_camera => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- Glows aren't visible while selfie mode is turned on.
- When the character moves, the camera is turned off.
- This plugin uses a "point_viewcontrol_survivor" entity to simulate the camera for each client.
- It may look a bit laggy for high latency clients.
- Sometimes the camera may attach to a random common when the player dies. (unknown cause)
- point_viewcontrol makes the player invulnerable while enabled on camera, point_viewcontrol_survivor/point_viewcontrol_multiplayer don't.
Thank you!
Related Plugins
Related Workshop Addons
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_selfie_camera.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.