Results 1 to 5 of 5

Thread: ioquake3 + surf pmove + map surf_utopia

  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,083 Times in 753 Posts

    ioquake3 + surf pmove + map surf_utopia

    fixed my vmf2map converter to support ioquake3 somewhat:



    bsp/surface bugs somewhat disappeared aswell since using a bunch of different shaders, I guess it hit some per-shader-limits
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    kubislav23 (19th September 2018)

  3. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,083 Times in 753 Posts
    Found proper aircontrol function: https://github.com/ETrun/ETrun/blob/...g_pmove.c#L841

    PHP Code:
    static void PM_Aircontrol(pmove_t *pmvec3_t wishdirfloat wishspeed) {
        
    float zspeedspeeddotk;
        
    int   i;
        
    float smove;

        if (!
    pm_aircontrol) {
            return;
        }

        
    // accelerate
        
    smove pm->cmd.rightmove;

        if ((
    smove || smove 0) || (wishspeed == 0.0)) {
            return; 
    // can't control movement if not moving forward or backward
        
    }

        
    zspeed              pm->ps->velocity[2];
        
    pm->ps->velocity[2] = 0;
        
    speed               VectorNormalize(pm->ps->velocity);

        
    dot DotProduct(pm->ps->velocitywishdir);
        
    k   32.0f pm_aircontrol dot dot pml.frametime;

        if (
    dot 0) {
            
    // we can't change direction while slowing down
            
    for (02; ++i) {
                
    pm->ps->velocity[i] = pm->ps->velocity[i] * speed wishdir[i] * k;
            }
            
    VectorNormalize(pm->ps->velocity);
        }

        for (
    02; ++i) {
            
    pm->ps->velocity[i] *= speed;
        }
        
    pm->ps->velocity[2] = zspeed;


    Feels way nicer now
    timescale 0.01

  4. The Following User Says Thank You to kung foo man For This Useful Post:

    kubislav23 (19th September 2018)

  5. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,083 Times in 753 Posts
    Also fixed the "bsp bugs" lol... solved it by increasing MIN_WALK_NORMAL... seems like a few surf_utopia planes scratch that dot product... sometimes
    timescale 0.01

  6. The Following User Says Thank You to kung foo man For This Useful Post:

    kubislav23 (21st September 2018)

  7. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Bookmarking to make my surf thingy more accurate in the future.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,083 Times in 753 Posts
    There is one last ramp in mp_surf_utopia which acts like a push-player-in-air-ramp when surfing over it with some speed.... I tried for hours all kinds of different ioquake3 settings and even recompiled map often with the gtkradiant q3map2 and every map compiler i could find (ryvens, paulvortex)... but I cannot figure out why it bugs. I guess I will just settle with what I have atm
    timescale 0.01

  9. The Following User Says Thank You to kung foo man For This Useful Post:

    kubislav23 (21st September 2018)

Posting Permissions

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