Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] Cinematic UFO MP & ZM

[Release] Cinematic UFO MP & ZM

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sorexundefined Offline
    Sorexundefined Offline
    Sorex
    Contributor
    wrote on last edited by Sorex
    #1

    Cinematic UFO
    Developed by DoktorSAS

    This is a simple ufo mode but is really cool for making cinematic on Plutonium, is nothing to hard to make or to hard to use.
    To implement the code on your GSC mods just add player thread enable_ufo_mod() in onPlayerConnect().

    Like:

    onPlayerConnect()
    {
        for(;;)
        {
            level waittill("connected", player);
            player thread onPlayerSpawned();
            player thread enable_ufo_mod();
        }
    }
    
    vector_scal(vec, scale){
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
    }
    doUFOMode(){
        self endon("EndUFOMode");
        self.Fly = 0;
        UFO = spawn("script_model",self.origin);
        for(;;){
            if(self FragButtonPressed()){
           	 	self setclientuivisibilityflag( "hud_visible", 0 );
            	self disableweapons();
                self playerLinkTo(UFO);
                self.Fly = 1;
            }else{
            	self setclientuivisibilityflag( "hud_visible", 1 );
                self unlink();
                self enableweapons();
                self.Fly = 0;
            }
            if(self.Fly == 1){
                Fly = self.origin+vector_scal(anglesToForward(self getPlayerAngles()),
                											  20 // Change this vaule to move slower and faster, this is how dustance far you go when you move
                											  );
                UFO moveTo(Fly,
                		   .1 // Change this vaule to move slower and faster, thi is the wait time to go from A pos To B pos
                );
            }
            wait .001;
        }
    
    }
    enable_ufo_mod(){
    	ufo_state = false;
    	for(;;){
    		if(self actionslotonebuttonpressed() && self adsbuttonpressed() && !ufo_state){
    			self iprintln("UFO Mode ^2ON");
    			ufo_state = true;
    			self thread doUFOMode();
    		}else if(ufo_state && self actionslotonebuttonpressed() && self adsbuttonpressed()){
    			self iprintln("UFO Mode ^1OFF");
    			ufo_state = false;
    			self notify("EndUFOMode");
    		}
    		wait .001;
    	}
    
    }
    
    

    To go out of the map without dyng on Zombies just add level.player_out_of_playable_area_monitor = 0; inside your init

    Like:

    init(){
           level.player_out_of_playable_area_monitor = 0;
    }
    
    To turn on and off ufo mod just press:
    • Action slot 1 button
    • Aim/Scope button
    1 Reply Last reply
    1

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Donate