Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Black Ops 2 - GSC Studio by iMCSx
- *
- * Creator : BlackOpsNinjaa
- * Project : Field of View Changer
- * Mode : Multiplayer
- * Date : 2015.02.01 - 17:30:33
- *
- */
- /* Made by Adrian (BlackOpsNinjaa)
- * https://www.youtube.com/channel/UC1_-u0cTDAH6kw6ZGHVP3aA
- */
- #include maps\mp\_utility;
- #include common_scripts\utility;
- #include maps\mp\gametypes\_hud_util;
- #include maps\mp\gametypes\_hud_message;
- init()
- {
- level thread onPlayerConnect();
- }
- onPlayerConnect()
- {
- for(;;)
- {
- level waittill("connected", player);
- player thread onPlayerSpawned();
- }
- }
- onPlayerSpawned()
- {
- self endon("disconnect");
- level endon("game_ended");
- for(;;)
- {
- self waittill("spawned_player");
- // Will appear each time when the player spawn, that's just an exemple.
- //Setting the actual FOV:
- setDvar("cg_fov", 120);
- //Display a message showing that the fov was changed to 120
- self iprintln("Field of View changed to 120");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement