Removing Blocks from Blockmaker
This is a tutorial on how to remove blocks from blockmaker
If you need help removing blocks just PM me ill be glad to help. To Search for words in a code press CTRL+F! For a better example scroll down and view NoFallDamage Example Example on erasing a simple block: Search & Erase Code:
new const gszBlockModelNAME[] = "models/blockmaker/bm_block_name.mdl"; Code:
const gBlockMax = Example: Code:
const gBlockMax = 24; Code:
const gBlockMax = 23; Should be around the area where BM_PLATFORM, // A is located Code:
BM_NAME, Code:
gszBlockModels[BM_NAME] = gszBlockModelNAME; Code:
"NAME", Code:
'KEYHERE', <--- The Blocks Key Code:
else if (equal(szType, "NAME")) blockType = BM_NAME; Code:
case BM_NAME: actionName(id); Code:
actionName(id) Code:
case 'KEYHERE': createBlock(0, BM_NAME, vVec1, axis, size); ********************************************* *** Example on a No Fall Damage: Some blocks may not be as difficult as nofalldamage Search & Erase Code:
new const gszBlockModelNoFallDamage[] = "models/blockmaker/bm_block_nofalldamage.mdl"; Search & Erase Code:
new bool:gbNoFallDamage[33]; Search Code:
const gBlockMax = Example: Code:
const gBlockMax = 24; Code:
const gBlockMax = 23; Search & Erase Code:
BM_NOFALLDAMAGE, //I Code:
gszBlockModels[BM_NOFALLDAMAGE] = gszBlockModelNoFallDamage; Code:
"No Fall Damage", Code:
'I', Code:
else if (equal(szType, "NOFALLDAMAGE")) blockType = BM_NOFALLDAMAGE; Code:
gbNoFallDamage[id] = false; Code:
case BM_NOFALLDAMAGE: actionNoFallDamage(id); "Hard Part" Search & Erase Code:
//if player is set to not get fall damage Code:
public client_PostThink(id) Search & Erase Code:
actionNoFallDamage(id) Code:
case 'I': createBlock(0, BM_NOFALLDAMAGE, vVec1, axis, size); |
Re: Removing Blocks from Blockmaker
This is a great tutorial. Even know you help me a lot with coding since I'm new... Keep up the good work!
|
Re: Removing Blocks from Blockmaker
Seriously i don't think this can be called "tutorial". You don't learn nothing with this. Here only say what you have to do, thats all.
|
Re: Removing Blocks from Blockmaker
Quote:
|
Re: Removing Blocks from Blockmaker
removing something is common sense basically.
if you see the block that your removing somewhere in the source, just remove that part of it. This wasn't really a tutorial as said before. |
All times are GMT -4. The time now is 11:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.