cursor thingy?

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Tue Jun 02, 2009 2:32 am

  • what's with that cursor thingy? cl_pytoncursor or something? what is it and how can it be used? example? i'm thinking of trying to do nexflight - planes that are controlled with it.
    +The Dude+
    [-Project 2501-]
    Mizu Kitsune
    Alien trapper
     
    Posts: 362
    Joined: Sat Apr 11, 2009 7:51 pm
    Location: Maridia

Tue Jun 02, 2009 7:20 am

  • I'll quickly mimic your way of posting (which consists of bumping threads, some being old, with just smileys or nothing that contains information) xD:

    "good question"
    IRC quote:
    [kojn] I've been coming a bit more recently
    [kojn] she took it the dirty way
    GreEn`mArine
    Forum addon
     
    Posts: 1509
    Joined: Tue Feb 28, 2006 9:33 pm
    Location: Germany

Tue Jun 02, 2009 1:00 pm

  • i am productive and helpful, but whatever. it's not the time and place to rant.
    +The Dude+
    [-Project 2501-]
    Mizu Kitsune
    Alien trapper
     
    Posts: 362
    Joined: Sat Apr 11, 2009 7:51 pm
    Location: Maridia

Tue Jun 02, 2009 1:25 pm

Wed Jun 03, 2009 6:17 am

  • Great job there, guys. Let's bash people in public, how exciting.


    The cursor thing is used by Prydon Gate, a mod for DP.

    From extensions.qh in nexuiz:
    Code: Select all
    //PRYDON_CLIENTCURSOR
    //idea: FrikaC
    //darkplaces implementation: LordHavoc
    //effects bit:
    float EF_SELECTABLE = 16384; // allows cursor to highlight entity (brighten)
    //field definitions:
    .float cursor_active; // true if cl_prydoncursor mode is on
    .vector cursor_screen; // screen position of cursor as -1 to +1 in _x and _y (_z unused)
    .vector cursor_trace_start; // position of camera
    .vector cursor_trace_endpos; // position of cursor in world (as traced from camera)
    .entity cursor_trace_ent; // entity the cursor is pointing at (server forces this to world if the entity is currently free at time of receipt)
    //cvar definitions:
    //cl_prydoncursor (0/1+, default 0, 1 and above use cursors named gfx/prydoncursor%03i.lmp - or .tga and such if DP_GFX_EXTERNALTEXTURES is implemented)
    //description:
    //shows that the engine supports the cl_prydoncursor cvar, this puts a clientside mouse pointer on the screen and feeds input to the server for the QuakeC to use as it sees fit.
    //the mouse pointer triggers button4 if cursor is at left edge of screen, button5 if at right edge of screen, button6 if at top edge of screen, button7 if at bottom edge of screen.
    //the clientside trace skips transparent entities (except those marked EF_SELECTABLE).
    //the selected entity highlights only if EF_SELECTABLE is set, a typical selection method would be doubling the brightness of the entity by some means (such as colormod[] *= 2).
    //intended to be used by Prydon Gate.


    I'm not sure how one would use this for nex...
    Meh.
    User avatar
    Mr. Bougo
    Keyboard killer
     
    Posts: 760
    Joined: Mon Sep 10, 2007 3:29 pm

Wed Jun 03, 2009 6:20 am

  • Mizu Kitsune wrote:i am productive and helpful, but whatever. it's not the time and place to rant.


    I agree, one of the few knowlegable about the DP engine in additon to Div today.
    tundramagi
    Forum addon
     
    Posts: 974
    Joined: Sun Jan 04, 2009 4:53 pm

Thu Jun 04, 2009 2:24 am

  • it makes you duck and jetpack straight up in nex.
    +The Dude+
    [-Project 2501-]
    Mizu Kitsune
    Alien trapper
     
    Posts: 362
    Joined: Sat Apr 11, 2009 7:51 pm
    Location: Maridia

Thu Jun 04, 2009 8:32 am

  • Yes.

    Code: Select all
    //the mouse pointer triggers button4 if cursor is at left edge of screen, button5 if at right edge of screen, button6 if at top edge of screen, button7 if at bottom edge of screen.



    That cursor was made for Prydon Gate, not for Nexuiz.
    Meh.
    User avatar
    Mr. Bougo
    Keyboard killer
     
    Posts: 760
    Joined: Mon Sep 10, 2007 3:29 pm



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest