View Full Version : [DOWNLOAD] [CoD2] Basetdm-Mod
kung foo man
20th August 2013, 09:36
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)
396
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
kung foo man
20th August 2013, 20:46
Ups, server started again, wasn't a permanent server (it is now).
kung foo man
9th October 2013, 03:28
MySQL needs this in a datebase:
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;
Ni3ls
9th October 2013, 07:28
What's the idea of this gametype? I dont play 1.3. Allies can build solid objects? and Axis need to destroy them?
kung foo man
9th October 2013, 08:13
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? :>
kung foo man
21st August 2014, 14:46
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
kung foo man
6th February 2015, 22:10
Everything on GitHub now: https://github.com/kungfooman/cod2_basemod
buLLeT_
11th March 2018, 19:07
error when i start script
1467
maxdamage99
11th March 2018, 20:22
error when i start script
1467
try start server with
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
/*
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!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.