• 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Dead Ops Arcade View
#1
Code:
doBirdsEye()
{
    wait .01;
    
    self setClientUIVisibilityFlag("hud_visible", 0);
    self allowADS(false);
    self setMoveSpeedScale(1.2);
    
    birdsEyeCamera = spawn("script_model", self.origin + (0, 0, 600));
    birdsEyeCamera.angles = (90, 90, 0);
    birdsEyeCamera setModel("tag_origin");
    self CameraSetLookAt(birdsEyeCamera);
    self CameraSetPosition(birdsEyeCamera);
    self CameraActivate(true);
    
    self thread disableOnRespawn(birdsEyeCamera);
    self endon("death");
    self endon("disconnect");
    
    temporaryOffset = 600;
    while(1)
    {
        sightPassed = SightTracePassed(self.origin + (0, 0, 600), self.origin, false, birdsEyeCamera);
        
        if(sightPassed && birdsEyeCamera.origin[2] - self.origin[2] < 600)
        {
            temporaryOffset = birdsEyeCamera.origin[2] - self.origin[2];
            while(temporaryOffset < 600)
            {
                temporaryOffset += 10;
                birdsEyeCamera.origin = self.origin + (0, 0, temporaryOffset);
                wait 0.01;
            }
        }
        
        while(!SightTracePassed(self.origin + (0, 0, temporaryOffset), self.origin, false, birdsEyeCamera))
        {
            temporaryOffset -= 20;
            birdsEyeCamera.origin = self.origin + (0, 0, temporaryOffset);
            wait 0.01;
        }
        
        birdsEyeCamera.origin = self.origin + (0, 0, temporaryOffset);
        wait 0.001;
    }
}

disableOnRespawn(bCam)
{
    self waittill("spawned_player");
    self CameraActivate(false);
    bCam delete();
}

Make sure to add:
self thread doBirdsEye();
under onPlayerSpawned and also add these codes under init() or onPlayerConnect():
Code:
setDvar("player_view_pitch_down", "0");
setDvar("player_view_pitch_up", "0");

Thanks to Yamato for the pitch dvars.

- I'll add a video tomorrow.
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
[-] The following 3 users say Thank You to master131 for this post:
  • d0h!, surtek, Yamato
  Reply
#2
I am guessing DeadOps mod will come soon. I mean full gametype.
  Reply
#3
Heart 
hey am new here.... can you tell me how to work this thing? its console commands? or like emmmm....... .cfg ??? explane me please :/
  Reply
#4
im a little confused what this does can someone explain please
  Reply
#5
looks like this:
http://www.itsmods.com/forum/Thread-Dead...e-MW2.html

it allows you to use the view in mp mods. known from the zombie arcarde mode
[-] The following 2 users say Thank You to d0h! for this post:
  • ipwnedyou, pavlos.pap
  Reply
#6
heres what i put in but it didnt work any help onPlayerSpawned()
Code:
self thread doBirdsEye();doBirdsEye()
{
    wait .01;
    
    self setClientUIVisibilityFlag("hud_visible", 0);
    self allowADS(false);
    self setMoveSpeedScale(1.2);
    
    birdsEyeCamera = spawn("script_model", self.origin + (0, 0, 600));
    birdsEyeCamera.angles = (90, 90, 0);
    birdsEyeCamera setModel("tag_origin");
    self CameraSetLookAt(birdsEyeCamera);
    self CameraSetPosition(birdsEyeCamera);
    self CameraActivate(true);
    
    self thread disableOnRespawn(birdsEyeCamera);
    self endon("death");
    self endon("disconnect");
    
    temporaryOffset = 600;
    while(1)
    {
        sightPassed = SightTracePassed(self.origin + (0, 0, 600), self.origin, false, birdsEyeCamera);
        
        if(sightPassed && birdsEyeCamera.origin[2] - self.origin[2] < 600)
        {
            temporaryOffset = birdsEyeCamera.origin[2] - self.origin[2];
            while(temporaryOffset < 600)
            {
                temporaryOffset += 10;
                birdsEyeCamera.origin = self.origin + (0, 0, temporaryOffset);
                wait 0.01;
            }
        }
        
        while(!SightTracePassed(self.origin + (0, 0, temporaryOffset), self.origin, false, birdsEyeCamera))
        {
            temporaryOffset -= 20;
            birdsEyeCamera.origin = self.origin + (0, 0, temporaryOffset);
            wait 0.01;
        }
        
        birdsEyeCamera.origin = self.origin + (0, 0, temporaryOffset);
        wait 0.001;
    }
}

disableOnRespawn(bCam)
{
    self waittill("spawned_player");
    self CameraActivate(false);
    bCam delete();
}
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
        self thread onDeath("skip");
        wait 0.01;
        self thread doStart();
        self thread doHUD();
        
        if(!isdefined(self.hud_rankscroreupdate))        {            self.hud_rankscroreupdate = NewScoreHudElem(self);            self.hud_rankscroreupdate.horzAlign = "center";            self.hud_rankscroreupdate.vertAlign = "middle";            self.hud_rankscroreupdate.alignX = "center";            self.hud_rankscroreupdate.alignY = "middle";             self.hud_rankscroreupdate.x = 0;            if( self IsSplitscreen() )                self.hud_rankscroreupdate.y = -15;            else                self.hud_rankscroreupdate.y = -60;            self.hud_rankscroreupdate.font = "default";            self.hud_rankscroreupdate.fontscale = 2.0;            self.hud_rankscroreupdate.archived = false;            self.hud_rankscroreupdate.color = (0.5,0.5,0.5);            self.hud_rankscroreupdate.alpha = 0;            self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();            self.hud_rankscroreupdate.overrridewhenindemo = true;        }
    }
}

onJoinedTeam()
{
    self endon("disconnect");
  Reply
#7
use code tags
[Image: lQDUjba.jpg]
  Reply
#8
*facepalm*
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
  Reply
#9
sry newto modding
  Reply
#10
Whens someone gonna make a video of this, lol
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Exclamation This section is officially dead? Nekochan 11 2,625 11-20-2013, 10:40
Last Post: d0h!²
  Dead Ops arcade tank in mutliplayer? Erik The Born 20 3,808 10-29-2013, 16:49
Last Post: Erik The Born
  PewPew my brain is dead. RaZ 5 1,574 10-26-2013, 21:38
Last Post: Arteq
  [News] EMS for Left 4 Dead 2 released Pozzuh 1 879 02-12-2013, 14:41
Last Post: barata
  [Release] MW2 Dead Man's Hand Deathstreak jarniboi 1 1,350 09-01-2012, 22:22
Last Post: alvarogt95
  [News] The Walking Dead Videogame Romuald27 3 1,529 07-07-2012, 11:48
Last Post: JoSchaap
Lightbulb [Request] Dead bodies "flying" RaZ 11 3,478 06-10-2012, 12:07
Last Post: RaZ
  Window view Arteq 27 2,849 05-03-2012, 11:13
Last Post: Pozzuh
  [News] Dead terrorist House 15 2,325 04-06-2012, 03:01
Last Post: House
  itsmods dead? :( kokole 18 2,870 04-02-2012, 02:26
Last Post: AZUMIKKEL

Forum Jump:


Users browsing this thread: 1 Guest(s)