Posts: 719
Threads: 69
Joined: Nov 2010
Reputation:
76
05-01-2011, 13:07
(This post was last modified: 05-01-2011, 14:21 by master131.)
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.
A casual conversation between barata and I about Nukem.
Posts: 2,509
Threads: 96
Joined: Nov 2010
Reputation:
38
05-01-2011, 17:40
(This post was last modified: 05-01-2011, 17:40 by surtek.)
I am guessing DeadOps mod will come soon. I mean full gametype.
Posts: 13
Threads: 0
Joined: Apr 2011
Reputation:
0
05-12-2011, 17:12
hey am new here.... can you tell me how to work this thing? its console commands? or like emmmm....... .cfg ??? explane me please :/
Posts: 86
Threads: 13
Joined: Mar 2011
Reputation:
1
im a little confused what this does can someone explain please
Posts: 6,052
Threads: 429
Joined: Oct 2010
05-13-2011, 22:30
(This post was last modified: 05-13-2011, 22:32 by d0h!.)
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
Posts: 86
Threads: 13
Joined: Mar 2011
Reputation:
1
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");
Posts: 2,992
Threads: 55
Joined: Feb 2011
Reputation:
114
Posts: 719
Threads: 69
Joined: Nov 2010
Reputation:
76
*facepalm*
A casual conversation between barata and I about Nukem.
Posts: 86
Threads: 13
Joined: Mar 2011
Reputation:
1
Posts: 24
Threads: 4
Joined: Apr 2011
Reputation:
5
Whens someone gonna make a video of this, lol
|