Results 1 to 9 of 9

Thread: [DOWNLOAD] [CoD2] Basetdm-Mod

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

    [DOWNLOAD] [CoD2] Basetdm-Mod

    Hey all, this is my old BaseTDM mod (which never attracted a lot of players unfortunately). Though the idea is still brand new to CoD2 / CoD4. Maybe somebody wants to use it and make e.g. a zombie mod out of it (hunters build some high thing and zombies need to attack after some time).

    Dependencies: MySQL for ranks, getStance()... not sure tbh, didn't touch it for months.

    Maps: only one made by me (yea, that's how much support I got)

    Click image for larger version. 

Name:	shot0000.jpg 
Views:	420 
Size:	310.4 KB 
ID:	396

    Click image for larger version. 

Name:	shot0003.jpg 
Views:	381 
Size:	306.0 KB 
ID:	397

    Also, the server is online again: http://killtube.org/5.9.141.13:28934

    I'm still interested in maps.

    Have fun

    Edit: Now on GitHub: https://github.com/kungfooman/cod2_basemod
    Attached Files Attached Files
    Last edited by kung foo man; 6th February 2015 at 23:09. Reason: Add GitHub link
    timescale 0.01

  2. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    Invictus (7th December 2014),STAUFFi (21st August 2013)

  3. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Ups, server started again, wasn't a permanent server (it is now).
    timescale 0.01

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    MySQL needs this in a datebase:

    Code:
    CREATE TABLE IF NOT EXISTS `players` (
      `id` int(10) NOT NULL AUTO_INCREMENT,
      `user` varchar(32) DEFAULT NULL,
      `pass` varchar(32) DEFAULT NULL,
      `money` int(10) DEFAULT NULL,
      `xp` int(10) DEFAULT NULL,
      `kills` int(10) DEFAULT NULL,
      `headshots` int(10) DEFAULT NULL,
      `melee_kills` int(10) DEFAULT NULL,
      `longest_killstreak` int(10) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    
    
    DELIMITER $$
    
    
    DROP FUNCTION IF EXISTS statsDeltaMoney$$
    
    
    CREATE FUNCTION statsDeltaMoney (id_ INT, money_ INT)
    RETURNS INT
    DETERMINISTIC
    BEGIN
        DECLARE ret INT;
        SET ret = NULL;
        UPDATE players SET money=IFNULL(money,0)+money_ WHERE id = id_;
        SELECT money FROM players WHERE id = id_ INTO ret;
        RETURN ret;
    END$$
    
    DELIMITER ;
    
    SELECT statsDeltaMoney(5, 10) AS newMoney;
    
    
    
    
    
    
    
    DELIMITER $$
    
    
    DROP FUNCTION IF EXISTS statsDeltaXP$$
    
    
    CREATE FUNCTION statsDeltaXP (id_ INT, xp_ INT)
    RETURNS INT
    DETERMINISTIC
    BEGIN
        DECLARE ret INT;
        SET ret = NULL;
        UPDATE players SET xp=IFNULL(xp,0)+xp_ WHERE id = id_;
        SELECT xp FROM players WHERE id = id_ INTO ret;
        RETURN ret;
    END$$
    
    DELIMITER ;
    
    SELECT statsDeltaXP(5, 10) AS newXP;
    timescale 0.01

  5. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    What's the idea of this gametype? I dont play 1.3. Allies can build solid objects? and Axis need to destroy them?

  6. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Each team gets like 80 objects (different shapes) and in build-time they can be moved to build the base you want to fight with. In fight-time the door lowers and then its "normal" tdm.

    Maybe just try it out and - if you like it - make more maps? :>
    timescale 0.01

  7. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    The main/std files are incompatible with the new libcod (removed closer stuff). Updated them and made repo out of it: https://github.com/kungfooman/cod2_std
    timescale 0.01

  8. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Everything on GitHub now: https://github.com/kungfooman/cod2_basemod
    timescale 0.01

  9. #8
    Private
    Join Date
    Feb 2018
    Posts
    28
    Thanks
    12
    Thanked 17 Times in 16 Posts
    error when i start script

    Click image for larger version. 

Name:	error.png 
Views:	58 
Size:	247.0 KB 
ID:	1467

  10. The Following User Says Thank You to buLLeT_ For This Useful Post:

    kubislav23 (11th March 2018)

  11. #9
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Quote Originally Posted by buLLeT_ View Post
    error when i start script

    Click image for larger version. 

Name:	error.png 
Views:	58 
Size:	247.0 KB 
ID:	1467
    try start server with
    Code:
    developer "0"
    ++
    Closer - it's old method for using libcod functions
    You can replace all "closer" on functions name

    LIST FUNC'S: https://znation.nl/cod4script

    Code:
    /*
    	100 == mysql_init()
    	101 == mysql_real_connect(mysql, host, user, pass, db, port)
    	102 == mysql_close(mysql)
    	103 == mysql_query(mysql, query)
    	104 == mysql_errno(mysql)
    	105 == mysql_error(mysql)
    	106 == mysql_affected_rows(mysql)
    	107 == mysql_store_result(mysql)
    	108 == mysql_num_rows(result)
    	109 == mysql_num_fields(result)
    	110 == mysql_field_seek(result, position)
    	111 == mysql_fetch_field()
    	112 == mysql_fetch_row(result)
    	113 == mysql_free_result(result)
    */
    EXAMPLE:
    replace "closer(105, mysql)" on "mysql_error(mysql)"

    WARNING:
    i think all pseudo functions writed in utility files, you can delete all pseudo functions from .gsc scripts (IF PSEUDO FUNCTION NAME == LIBCOD FUNCTION NAME)

    WARNING#2:
    You try start server on Windows, libcod_win have small pack of functions

    WARNING#3:
    SUPA BAD ENGLISH!!11!
    Last edited by maxdamage99; 11th March 2018 at 21:35.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  12. The Following 2 Users Say Thank You to maxdamage99 For This Useful Post:

    buLLeT_ (11th March 2018),kung foo man (2nd November 2020)

Posting Permissions

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