ItsMods

Full Version: Map Building Functions Enhanced
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(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

Is the elevator working, because here im getting unknow function ?Dodgy

Thanks for your time Barata...
(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
(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

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)

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...
wtf, pls use code or php tags and pls dont quote such long posts.
(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

(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
(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
Pages: 1 2 3 4