Page 3 of 14 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 135

Thread: MOHAA Coop

  1. #21
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Quote Originally Posted by chrissstrahl View Post
    If i have a file in the game folders and the same file in a pk3,
    the file in the pk3 will always overwrite (not physically) the file from the folder.
    That behaviour is exactly the opposite of what I need.

    Extracting the pk3 is not really a option, as I would like to keep my modified files
    separate from the original files, it is really messy otherwise.
    I might need to make a batch compressing the files and moving the pk3 over


    What do you mean ?
    nope, it's the other way around. files in the main folder overwrite the files in the pk3.
    Have you found a way around warmup.

  2. #22

    Default

    nope, it's the other way around. files in the main folder overwrite the files in the pk3.
    I wish! With my game it is not.
    I am putting stuff in the "maintt" folder not the actual "main" folder, because I think it is better to run the coop mod with BT included.

    Have you found a way around warmup.
    I have not tested it yet, but I am confident it will work.

    I am currently working on more important tasks, I am still making notes to get a good overview.
    This is what I have got working so far:
    • objectives (that was actually super easy, as I made a script for that in 2015)
    • players are forced into allies team on spawn
    • team selection is skipped, showing only primary weapon selection
    • respawn manager respawns players at where they died (will need testing and adjustments for each map)
    • disabled autosave in multiplayer
    • integrated my mom (multi options menu - currently for development test commands, later for coop features)
    • player health is scaled depending on coop_skill cvar
    • a few functions replacing $player related stuff not working in mp

  3. #23

    Default

    Is someone willing to help out with the ui ?
    Some menus would need to be modified for the mod, so they can be used with my mom.

  4. #24
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Quote Originally Posted by chrissstrahl View Post
    I wish! With my game it is not.
    I am putting stuff in the "maintt" folder not the actual "main" folder, because I think it is better to run the coop mod with BT included.
    I didn't test that in bt.
    Quote Originally Posted by chrissstrahl View Post
    • integrated my mom (multi options menu - currently for development test commands, later for coop features)
    ur mom gay.

  5. #25

    Default

    Quote Originally Posted by RyBack View Post
    ur mom gay.
    Are you outing your self or what are you trying to tell me ?

    So I take it you don't want to help with the ui ?

  6. #26
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Quote Originally Posted by chrissstrahl View Post
    Are you outing your self or what are you trying to tell me ?

    So I take it you don't want to help with the ui ?
    https://knowyourmeme.com/memes/youre-mom-gay?full=1
    You just made me ruin it btw.

  7. #27

    Default

    Sorry mate, but I there is no law that says you need to know all memes.
    It would have been funny if you had posted a link to the picture in the first place, but now, afterwards, ya it is ruined.

    Maybe this will help you
    http://trollstreet.com/wp-content/up...unny-memes.jpg

  8. #28

    Default

    Guys can we stay on the subject of the thread instead speaking about your mothers?

  9. #29

    Default

    Quote Originally Posted by DoubleKill View Post
    Guys can we stay on the subject of the thread instead speaking about your mothers?
    https://i.kym-cdn.com/photos/images/...heinternet.jpg

  10. #30

    Default

    I made a function that is suppose to check if the given var is a player and if there are multiple players on the server.
    That will be needed if there are multiple players and the reference to $player will no longer work with many script commands,
    because $player has become a array, rather than just a regular entity.

    Because I need this function very fast and very reliant I thought it would not hurt to get a second opinion here.
    PHP Code:
    //check if the given entity is of type player and a array
    //problems arise as soon as there is more than 1 player on the map
    //=========================================================================
    isPlayerArray local.player:{
    //=========================================================================
        //level.coop_singleplayer reads cvar g_gametype value upon level start once
        //level.coop_svmaxclients reads cvar sv_maxclients value upon level start once
        
        //singeplayer or var is empty or entity is missing
        
    if( level.coop_singleplayer == || local.player == NIL || local.player == NULL ){
            
    end 0
        
    }
        
        if( 
    local.player.size ){
            for(
    local.1;local.<= local.player.size;local.i++){
                
    local.current =    local.player[local.i]
                
    //just to be perfectly paranoid:
                //- make sure the player exists
                //- make sure the player has the targetname player - removed, this is tottaly redundant and slow
                //- make sure the player has the correct entity number 0 to sv_maxclients(-1) are reserved for players
                
    if(local.current != NULL && local.current.entnum level.coop_svmaxclients /*&& local.current.targetname == "player"*/ ){
                    
    end 1
                
    }
            }
        }
    }
    end 0 

Posting Permissions

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