• 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Map Building Functions Enhanced
#11
(12-29-2010, 18:14)Romuald27 Wrote: CreateDoor = Don't working =/
Yep...Not all workingSad
CreateDoor related to functions in Quarantine Unleashed so we can't do anything about it

[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#12
Is the elevator working, because here im getting unknow function ?Dodgy

Thanks for your time Barata...
  Reply
#13
(01-03-2011, 20:21)barata Wrote: Is the elevator working, because here im getting unknow function ?Dodgy

Thanks for your time Barata...
The elevator is completely working, i have testedTongue
[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#14
(01-04-2011, 10:21)alistair3149 Wrote:
(01-03-2011, 20:21)barata Wrote: Is the elevator working, because here im getting unknow function ?Dodgy

Thanks for your time Barata...
The elevator is completely working, i have testedTongue

Can you share the code you used to create the elevator because i used this into the map jungle:

CreateElevator((1754, -109, 298), (1964, -109, 658), (0, 0, 0));

And im gettin Unknown Function.

BTW my code is this:

PHP Code:
// BROUGHT TO YOU BY IT'S MODS
// VISIT WWW.ITSMODS.COM FOR ALL YOUR MODDING NEEDS

#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()

    
level.doorwait 2;
    
level.elevator_model["enter"] = "mp_flag_allies_1";
    
level.elevator_model["exit"] = "mp_flag_axis_1";
    
precacheModel(level.elevator_model["enter"]);
    
precacheModel(level.elevator_model["exit"]);
    
level.scoreInfo = [];
    
level.xpScale GetDvarInt#"scr_xpscale" );
    
level.codPointsXpScale GetDvarFloat#"scr_codpointsxpscale" );
    
level.codPointsMatchScale GetDvarFloat#"scr_codpointsmatchscale" );
    
level.codPointsChallengeScale GetDvarFloat#"scr_codpointsperchallenge" );
    
level.rankXpCap GetDvarInt#"scr_rankXpCap" );
    
level.codPointsCap GetDvarInt#"scr_codPointsCap" );    

    
level.rankTable = [];

    
precacheShader("white");

    
precacheString( &"RANK_PLAYER_WAS_PROMOTED_N" );
    
precacheString( &"RANK_PLAYER_WAS_PROMOTED" );
    
precacheString( &"RANK_PROMOTED" );
    
precacheString( &"MP_PLUS" );
    
precacheString( &"RANK_ROMANI" );
    
precacheString( &"RANK_ROMANII" );
    
precacheShader("rank_prestige15_128");

    if ( 
level.teamBased )
    {
        
registerScoreInfo"kill"100 );
        
registerScoreInfo"headshot"100 );
        
registerScoreInfo"assist_75"80 );
        
registerScoreInfo"assist_50"60 );
        
registerScoreInfo"assist_25"40 );
        
registerScoreInfo"assist"20 );
        
registerScoreInfo"suicide");
        
registerScoreInfo"teamkill");
        
registerScoreInfo"dogkill"30 );
        
registerScoreInfo"dogassist"10 );
        
registerScoreInfo"helicopterkill"200 );
        
registerScoreInfo"helicopterassist"100 );
        
registerScoreInfo"helicopterassist_75");
        
registerScoreInfo"helicopterassist_50");
        
registerScoreInfo"helicopterassist_25");
        
registerScoreInfo"spyplanekill"100 );
        
registerScoreInfo"spyplaneassist"50 );
        
registerScoreInfo"rcbombdestroy"50 );
    }
    else
    {
        
registerScoreInfo"kill"50 );
        
registerScoreInfo"headshot"50 );
        
registerScoreInfo"assist_75");
        
registerScoreInfo"assist_50");
        
registerScoreInfo"assist_25");
        
registerScoreInfo"assist");
        
registerScoreInfo"suicide");
        
registerScoreInfo"teamkill");
        
registerScoreInfo"dogkill"20 );
        
registerScoreInfo"dogassist");
        
registerScoreInfo"helicopterkill"100 );
        
registerScoreInfo"helicopterassist");
        
registerScoreInfo"helicopterassist_75");
        
registerScoreInfo"helicopterassist_50");
        
registerScoreInfo"helicopterassist_25");
        
registerScoreInfo"spyplanekill"25 );
        
registerScoreInfo"spyplaneassist");
        
registerScoreInfo"rcbombdestroy"30 );
    }
    
    
registerScoreInfo"win");
    
registerScoreInfo"loss"0.5 );
    
registerScoreInfo"tie"0.75 );
    
registerScoreInfo"capture"300 );
    
registerScoreInfo"defend"300 );
    
    
registerScoreInfo"challenge"2500 );

    
level.maxRank int(tableLookup"mp/rankTable.csv"0"maxrank"));
    
level.maxPrestige int(tableLookup"mp/rankIconTable.csv"0"maxprestige"));
    
    
pId 0;
    
rId 0;
    for ( 
pId 0pId <= level.maxPrestigepId++ )
    {
        
// the rank icons are different
        
for ( rId 0rId <= level.maxRankrId++ )
            
precacheShadertableLookup"mp/rankIconTable.csv"0rIdpId+) );
    }

    
rankId 0;
    
rankName tableLookup"mp/ranktable.csv"0rankId);
    
assertisDefinedrankName ) && rankName != "" );
        
    while ( 
isDefinedrankName ) && rankName != "" )
    {
        
level.rankTable[rankId][1] = tableLookup"mp/ranktable.csv"0rankId);
        
level.rankTable[rankId][2] = tableLookup"mp/ranktable.csv"0rankId);
        
level.rankTable[rankId][3] = tableLookup"mp/ranktable.csv"0rankId);
        
level.rankTable[rankId][7] = tableLookup"mp/ranktable.csv"0rankId);
        
level.rankTable[rankId][14] = tableLookup"mp/ranktable.csv"0rankId14 );

        
precacheStringtableLookupIString"mp/ranktable.csv"0rankId16 ) );

        
rankId++;
        
rankName tableLookup"mp/ranktable.csv"0rankId);        
    }

    
level.numStatsMilestoneTiers 4;
    
level.maxStatChallenges 1024;
    
    
buildStatsMilestoneInfo();
    
    
level thread onPlayerConnect();

    
/*Vars*/
    
    
level thread domaps();
    
level thread createBlocks();    
}

CreateElevator(enter, exit, angle)
{
        
flag spawn"script_model"enter);
        
flag setModellevel.elevator_model["enter"] );
        
flag SetOwnerlevel );
        
wait 0.01;
        
flag spawn"script_model", exit, );
        
flag setModellevel.elevator_model["exit"] );
        
flag SetOwnerlevel );
        
wait 0.01;
        
self thread ElevatorThink(enter, exit, angle);
}

createBlocks()
{
    
level.crateTypes["turret_drop_mp"] = [];
    
level.crateTypes["tow_turret_drop_mp"] = [];
    
level thread maps\mp\_turret_killstreak::init();
    if(
level.bunkerList.size 0) {
        for(
0level.bunkerList.sizei++) {
            if(
isDefined(level.bunkerList[i]))
                
level thread createJumpArea(level.bunkerList[i].locationlevel.bunkerList[i].angle);
        }
    }
  
//level.predoneBunkers = level.bunkerList.size;
    
}

createJumpArea(posrotation)
{
    
jumpArea spawn("script_model"pos);
    
jumpArea setModel("mp_supplydrop_ally");
    
jumpArea.angles rotation;
}

createBlock(originangle)
{
    
block spawnstruct();
    
block.location origin;
    
block.angle angle;
    return 
block;
}

ElevatorThink(enter, exit, angle)
{
        
self endon("disconnect");
        while(
1)
        {
                for(
0level.players.sizei++)
                {
                        if(
DistanceSquared(enterlevel.players[i].origin) <= Power(502)){
                                
level.players[iSetOrigin(exit);
                                
level.players[iSetPlayerAngles(angle);
                        }
                }
                
wait .25;
        }
}

domaps()
{
    if(
getDvar("mapname") == "mp_array") { /** Array **/
        
level thread ArrayMap();
    }
    if(
getDvar("mapname") == "mp_cairo") { /** Havana **/
        
level thread Havana();
    }
    if(
getDvar("mapname") == "mp_cosmodrome") { /** Launch **/
        
level thread Launch();
    }
    if(
getDvar("mapname") == "mp_cracked") { /** Cracked **/
        
level thread Cracked();
    }
    if(
getDvar("mapname") == "mp_crisis") { /** Crisis **/
        
level thread Crisis();
    }
    if(
getDvar("mapname") == "mp_duga") { /** Grid **/
        
level thread Grid();
    }
    if(
getDvar("mapname") == "mp_firingrange") { /** Firing Range **/
        
level thread FiringRange();
    }
    if(
getDvar("mapname") == "mp_hanoi") { /** Hanoi **/
        
level thread Hanoi();
    }
    if(
getDvar("mapname") == "mp_havoc") { /** Jungle **/
        
level thread Jungle();
    }
    if(
getDvar("mapname") == "mp_mountain") { /** Summit **/
        
level thread Summit();
    }
    if(
getDvar("mapname") == "mp_nuked") { /** NukeTown **/
        
level thread NukeTown();
    }
    if(
getDvar("mapname") == "mp_radiation") { /** Radiation **/
        
level thread Radiation();
    }
    if(
getDvar("mapname") == "mp_russianbase") { /** WMD **/
        
level thread WMD();
    }
    if(
getDvar("mapname") == "mp_villa") { /** Villa **/
        
level thread Villa();
    }
}

ArrayMap()
{

}

Havana()
{

}

Launch()
{

}

Cracked()
{

}

Crisis()
{

}

Grid()
{

}

FiringRange()
{

}

Hanoi()
{

}

Jungle()
{
    
level.bunkerList[0] = createBlock((2150, -2445277), (0, -300));
    
level.bunkerList[1] = createBlock((2120, -2495277), (0, -300));
    
level.bunkerList[2] = createBlock((2090, -2535277), (0, -300));
    
level.bunkerList[3] = createBlock((1754, -109298), (000));
    
level.bunkerList[4] = createBlock((1764, -109308), (000));
    
level.bunkerList[5] = createBlock((1774, -109318), (000));
    
level.bunkerList[6] = createBlock((1784, -109328), (000));
    
level.bunkerList[7] = createBlock((1794, -109338), (000));
    
level.bunkerList[8] = createBlock((1804, -109348), (000));
    
level.bunkerList[9] = createBlock((1814, -109358), (000));
    
level.bunkerList[10] = createBlock((1824, -109368), (000));
    
level.bunkerList[11] = createBlock((1834, -109378), (000));
    
level.bunkerList[12] = createBlock((1844, -109388), (000));
    
level.bunkerList[13] = createBlock((1854, -109398), (000));
    
level.bunkerList[14] = createBlock((1864, -109408), (000));
    
level.bunkerList[15] = createBlock((1874, -109418), (000));
    
level.bunkerList[16] = createBlock((1884, -109428), (000));
    
level.bunkerList[17] = createBlock((1894, -109438), (000));
    
level.bunkerList[18] = createBlock((1904, -109448), (000));
    
level.bunkerList[19] = createBlock((1914, -109458), (000));
    
level.bunkerList[20] = createBlock((1924, -109468), (000));
    
level.bunkerList[21] = createBlock((1934, -109478), (000));
    
level.bunkerList[22] = createBlock((1944, -109498), (000));
    
level.bunkerList[23] = createBlock((1954, -109518), (000));
    
level.bunkerList[24] = createBlock((1964, -109538), (000));
    
level.bunkerList[25] = createBlock((2090, -2415277), (0, -300));
    
level.bunkerList[26] = createBlock((2090, -2475277), (0, -300));
    
CreateElevator((1754, -109298), (1964, -109658), (000));
}

Summit()
{

}

Nuketown()
{

}

Radiation()
{

}

WMD()
{

}

Villa()
{

}

Credtis for: EekhoornNukemKillingdyl  and master131 for the building functions

Thanks Barata....
Big Grin
  Reply
#15

Next time put in code tagWink
CreateElevator is not the cause of unknown function, and elevator doesn't work with RCXD too...
U need some extra code from master131's building function, go and ask him (cuz no one knows about it)
[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#16

srry for the whole code XD

Thanks for the answer im trying to make my sniper mod with carepackage maps but i cant get the createElevator to workDodgy

Im goingo to pm master131's.

Thanks Barata...
  Reply
#17
wtf, pls use code or php tags and pls dont quote such long posts.
  Reply
#18
(01-04-2011, 15:45)d0h! Wrote: wtf, pls use code or php tags and pls dont quote such long posts.
I will try to cut the text in the quote thenDodgy

[Image: wyipjqo9qon7rc2v1lo.jpg]
  Reply
#19
(01-04-2011, 15:45)d0h! Wrote: wtf, pls use code or php tags and pls dont quote such long posts.

Srry im a little noob Dodgy

Next time i will be more carefullAngel
  Reply
#20
(01-04-2011, 16:05)alistair3149 Wrote:
(01-04-2011, 15:45)d0h! Wrote: wtf, pls use code or php tags and pls dont quote such long posts.
I will try to cut the text in the quote thenDodgy

no problem, once the code is in quote its not that long

(01-04-2011, 16:22)barata Wrote:
(01-04-2011, 15:45)d0h! Wrote: wtf, pls use code or php tags and pls dont quote such long posts.

Srry im a little noob Dodgy

Next time i will be more carefullAngel

you are welcome
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Matrix Functions Yamato 1 2,481 07-29-2013, 20:14
Last Post: Rendflex
  [Release] nCr and Factorial Functions Yamato 2 2,485 06-18-2013, 17:24
Last Post: Nekochan
  [Release] Random Functions 1.1 Yamato 22 12,135 04-20-2013, 10:13
Last Post: Dominator56
  [Release] Enhanced Botz alistair3149 11 27,774 01-02-2013, 12:59
Last Post: Paroxysmics
  Functions surtek 14 10,413 09-19-2012, 07:57
Last Post: Pozzuh
Information [Solved] Info about functions, events and etc. Nerus 2 2,292 09-09-2012, 20:57
Last Post: surtek
  Seldom required functions Phl3x_ 3 2,952 06-03-2012, 10:53
Last Post: RaZ
  Help I find This functions and i need your help. Bloodfocus 5 3,561 04-23-2012, 01:43
Last Post: House
  Help Functions iPrintLnBold() [Z00MBY] Alex 7 5,404 04-16-2012, 08:44
Last Post: [Z00MBY] Alex
  Preview Racing Mod Enhanced iAegle 18 9,173 03-25-2012, 05:35
Last Post: rotceh_dnih

Forum Jump:


Users browsing this thread: 1 Guest(s)