How Does That Work?

buggerbbbuggerbb Join Date: 2003-03-04 Member: 14296Members
<div class="IPBDescription">not sure if this is the place to ask...</div> Hey everyone, i was just thinking (hard even for me to believe) how does the command chair work? i was trying to come up with som prossible way of how it was coded but i am totaly stumped..

If anyone knows, or thinks they know i would love to hear it. I think it is so crazy what you can still do with the HL engine these days. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

-Danish Monkey

Comments

  • PapercutPapercut Join Date: 2003-01-23 Member: 12656Members
    When you have the commander-view, youre actually a marine just hanging over the map. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • BogglesteinskyBogglesteinsky Join Date: 2002-12-24 Member: 11488Members
  • chubbystevechubbysteve Join Date: 2002-10-14 Member: 1496Members, Constellation
    In v2 you can hear the women in the CC when the com is above you a short distance. It's very faint, but it's still there.
    Also - commanders are 'already dead' if you try and sucide.
  • buggerbbbuggerbb Join Date: 2003-03-04 Member: 14296Members
    ooohhh, wow...

    That is wack, but cool at the same time! so i basicly just teleports you to a space above the action and only able to go side to side?

    How is it not seeing the clipping flashing u see when you go out of the playing area?

    That is very clever, good thinking NS team.

    -Danish Monkey
  • watch_me_diewatch_me_die Join Date: 2002-11-10 Member: 8107Members
    I think the comm view draws a big black square at a set distance to cover the flickering up, as set by the mapper... commander selects things by using a "ScreenToWorld" function that converts mouse co-ordinates onscreen to game world vectors, and then does a traceline to find if they are clicking on something <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> (saw flay asking some stuff about this on hl coding boards a while back)
  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    <!--QuoteBegin--[watch.me.die]+Aug 8 2003, 09:30 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([watch.me.die] @ Aug 8 2003, 09:30 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I think the comm view draws a big black square at a set distance to cover the flickering up, as set by the mapper... commander selects things by using a "ScreenToWorld" function that converts mouse co-ordinates onscreen to game world vectors, and then does a traceline to find if they are clicking on something <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> (saw flay asking some stuff about this on hl coding boards a while back) <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Yep, it draws the sprite at "sprites/topdownbg.spr" at the height specified by the mapper during each frame.
  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    And don't forget to mention that he rewrote the entity visibility code because in vanilla HL you can't see entities when over (outside) the map. Flayra just made all entities visible that are in a certain range from the player. (Is Z-distance also calculated or only X-Y?)
  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    <!--QuoteBegin--NerdIII+Aug 20 2003, 08:11 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (NerdIII @ Aug 20 2003, 08:11 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> And don't forget to mention that he rewrote the entity visibility code because in vanilla HL you can't see entities when over (outside) the map. Flayra just made all entities visible that are in a certain range from the player. (Is Z-distance also calculated or only X-Y?) <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Only X-Y.
  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    ahh thx Cagey. Wondered if entities become invisible when you fly too high.
Sign In or Register to comment.