Topic: [MOD] TBlock v1.2
hi again dear nabs ,
good news for you !
a new version of Block mod is out now by Teecity development team
-mod edited by Hamidjigool & Alirezakaj
-based on DDnet 9.0.2 and xxlddrace 2.0
-equipment of mod :
-old :
xxl
rainbow
jetpack
blood & bloody
super
invise
ninjajetpack
endless hook
Admin room
member room
moderator room
-New :
Clan room (read tutorial of how to use it in down of page )
uninvise tile
Canon (based on ddnet and need edit maps first to use this )
Emote sounds
Tutorial how to use Clan room :
you need to edit map by tile number of each clan
base Clans in this mod are [P.G] , persianpro , Zone , [C.Z] , Venum
but you can change them for yourself here it is
download source code from down links on this page
then go to this location of it >// src/game/server/entities/Character.cpp
open this file with c++ or notepad++ find line 1839 to 1849
there are clan codes but dont worry ! changing this is easy
example : line 1842 :
if(str_comp(Server()->ClientClan(m_pPlayer->GetCID()), "[P.G]") == 0)
so you can change name [P.G] to any thing you want
and line 1847 :
GameServer()->SendChatTarget(m_pPlayer->GetCID(), "Welcome to Persian gulf Clan Room..!");
you can change Welcome to Persian gulf Clan Room..! to any welcome messege you want
see , its easy !
other clans can be edit like this , if you want add more clans you need to add new tile first :
go to : src/game/mapitems.h
line 118 :
TILE_VCLAN=164,
you must enter and go next line 119 and create new like this :
TILE_NewCLAN=165,
and next will be :
TILE_New2CLAN=166,
and so go on ... but remember there are numper of Tile maping ! ( in editor Tile 165 will be NewClan ......)
but this is not enoght you need to go again on character.cpp
see this example : ( you create TILE_NewCLAN in mapitems.h , now you should use this in character.cpp to make new one )
line 1839 : before codes of [P.G] clan wiil be this :
if((m_TileIndex == TILE_NewCLAN) || (m_TileFIndex == TILE_NewCLAN))
{
if(str_comp(Server()->ClientClan(m_pPlayer->GetCID()), "New") == 0)
{
if(m_pPlayer->m_ClanMSG)
{
GameServer()->CreateSound(m_Pos, SOUND_RIFLE_BOUNCE);
GameServer()->SendChatTarget(m_pPlayer->GetCID(), "Welcome to New Clan Room..!");
m_pPlayer->m_ClanMSG = false;
}
}
else
{
GameServer()->CreateSound(m_Pos, SOUND_PLAYER_PAIN_LONG);
Die(m_pPlayer->GetCID(), WEAPON_WORLD);
GameServer()->SendChatTarget(m_pPlayer->GetCID(), "Your clan name must be New to enter Clan Room.");
m_pPlayer->m_ClanMSG = false;
}
}
you need to do this each time for every clan now save all and go compile source code <> have fun !
binaries :
server X64 windows
entities (for maping )
Source code
map & confige of map ( you can see all of equipment in this map)
Confige of server
you can use DDnet files for run server just replace these files on them
special thanks to deen & DDnet community
special thanks to FuroS for emote sounds code helping
www.Teecity.ir
Teeworld Developers group : https://t.me/teeworldsdev