Results 1 to 2 of 2

Thread: Some Source Code Advice? =]

  1. Just getting started
    Join Date
    02-19-10
    Posts
    2
    Post Thanks / Like
    #1

    Some Source Code Advice? =]

    Hi everyone.

    I need some help for Left 4 Dead's console (PC).
    I'm going to make an intro for my videos on YouTube, I'm gonna mess about to find a cool intro. At first I'm thinking of a hunter leaping into the camera, fading into white and then showing "Made by whoever... bla bla bla".

    Anyway, I was wondering if there was a code to basically spawn a free roaming camera that can just fly around the map, like... I think it's called "Ghost Cam" on Gears 2. I want this because I can put the camera on the ground, with the hunter jumping off a building towards the camera. If this is not possible, maybe a "noclip" with the survivors body being invisible?

    Anyway, please tell me the code and some instructions on how to use it properly if you can help me, and thanks very much. =D

  2. Zombie Rat
    Join Date
    07-04-09
    Posts
    372
    Post Thanks / Like
    #2
    To start, you'll need to turn on cheats: sv_cheats 1. From there, you have a few options.

    You can use:
    sb_all_bot_team 1
    spectate
    r_drawvgui 0

    ... to get a clean spectator screen, which sounds like what you want. A word of WARNING: r_drawvgui removes everything, even menus, so type this in console FIRST:

    bind 1 "r_drawvgui 1";

    You can substitute the 1 for any key. When you want to return the HUD to normal, press the key.

    -----

    Otherwise, you could use the following:
    r_drawviewmodel 0 (removes weapon)
    cl_drawhud 0

    The other method is preferable, though, IMO.

    -----

    And there's even a third, which might work even better. Record a demo of the gameplay (record [demoname] in console), then play it back (playdemo [demoname]). While watching the demo, hit Shift + F2 to bring up the control GUI. You can use the Drive function to move around and position yourself, which is a little choppy and not the best, but it will work. Alternately, you could try demo smoothing:

    YouTube - Left 4 Dead: Smoother Overview

    It's more laborious, but in combo with some of the above cvars (particularly the spectator ones), you can produce amazing, smooth results.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Title