12-30-2010, 02:15
(12-29-2010, 18:14)Romuald27 Wrote: [ -> ]CreateDoor = Don't working =/Yep...Not all working
CreateDoor related to functions in Quarantine Unleashed so we can't do anything about it
(12-29-2010, 18:14)Romuald27 Wrote: [ -> ]CreateDoor = Don't working =/Yep...Not all working
(01-03-2011, 20:21)barata Wrote: [ -> ]Is the elevator working, because here im getting unknow function ?The elevator is completely working, i have tested
Thanks for your time Barata...
(01-04-2011, 10:21)alistair3149 Wrote: [ -> ](01-03-2011, 20:21)barata Wrote: [ -> ]Is the elevator working, because here im getting unknow function ?The elevator is completely working, i have tested
Thanks for your time Barata...
// 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", 0 );
registerScoreInfo( "teamkill", 0 );
registerScoreInfo( "dogkill", 30 );
registerScoreInfo( "dogassist", 10 );
registerScoreInfo( "helicopterkill", 200 );
registerScoreInfo( "helicopterassist", 100 );
registerScoreInfo( "helicopterassist_75", 0 );
registerScoreInfo( "helicopterassist_50", 0 );
registerScoreInfo( "helicopterassist_25", 0 );
registerScoreInfo( "spyplanekill", 100 );
registerScoreInfo( "spyplaneassist", 50 );
registerScoreInfo( "rcbombdestroy", 50 );
}
else
{
registerScoreInfo( "kill", 50 );
registerScoreInfo( "headshot", 50 );
registerScoreInfo( "assist_75", 0 );
registerScoreInfo( "assist_50", 0 );
registerScoreInfo( "assist_25", 0 );
registerScoreInfo( "assist", 0 );
registerScoreInfo( "suicide", 0 );
registerScoreInfo( "teamkill", 0 );
registerScoreInfo( "dogkill", 20 );
registerScoreInfo( "dogassist", 0 );
registerScoreInfo( "helicopterkill", 100 );
registerScoreInfo( "helicopterassist", 0 );
registerScoreInfo( "helicopterassist_75", 0 );
registerScoreInfo( "helicopterassist_50", 0 );
registerScoreInfo( "helicopterassist_25", 0 );
registerScoreInfo( "spyplanekill", 25 );
registerScoreInfo( "spyplaneassist", 0 );
registerScoreInfo( "rcbombdestroy", 30 );
}
registerScoreInfo( "win", 1 );
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", 1 ));
level.maxPrestige = int(tableLookup( "mp/rankIconTable.csv", 0, "maxprestige", 1 ));
pId = 0;
rId = 0;
for ( pId = 0; pId <= level.maxPrestige; pId++ )
{
// the rank icons are different
for ( rId = 0; rId <= level.maxRank; rId++ )
precacheShader( tableLookup( "mp/rankIconTable.csv", 0, rId, pId+1 ) );
}
rankId = 0;
rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
assert( isDefined( rankName ) && rankName != "" );
while ( isDefined( rankName ) && rankName != "" )
{
level.rankTable[rankId][1] = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
level.rankTable[rankId][2] = tableLookup( "mp/ranktable.csv", 0, rankId, 2 );
level.rankTable[rankId][3] = tableLookup( "mp/ranktable.csv", 0, rankId, 3 );
level.rankTable[rankId][7] = tableLookup( "mp/ranktable.csv", 0, rankId, 7 );
level.rankTable[rankId][14] = tableLookup( "mp/ranktable.csv", 0, rankId, 14 );
precacheString( tableLookupIString( "mp/ranktable.csv", 0, rankId, 16 ) );
rankId++;
rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
}
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, 0 );
flag setModel( level.elevator_model["enter"] );
flag SetOwner( level );
wait 0.01;
flag = spawn( "script_model", exit, 0 );
flag setModel( level.elevator_model["exit"] );
flag SetOwner( level );
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(i = 0; i < level.bunkerList.size; i++) {
if(isDefined(level.bunkerList[i]))
level thread createJumpArea(level.bunkerList[i].location, level.bunkerList[i].angle);
}
}
//level.predoneBunkers = level.bunkerList.size;
}
createJumpArea(pos, rotation)
{
jumpArea = spawn("script_model", pos);
jumpArea setModel("mp_supplydrop_ally");
jumpArea.angles = rotation;
}
createBlock(origin, angle)
{
block = spawnstruct();
block.location = origin;
block.angle = angle;
return block;
}
ElevatorThink(enter, exit, angle)
{
self endon("disconnect");
while(1)
{
for(i = 0; i < level.players.size; i++)
{
if(DistanceSquared(enter, level.players[i].origin) <= Power(50, 2)){
level.players[i] SetOrigin(exit);
level.players[i] SetPlayerAngles(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, -2445, 277), (0, -30, 0));
level.bunkerList[1] = createBlock((2120, -2495, 277), (0, -30, 0));
level.bunkerList[2] = createBlock((2090, -2535, 277), (0, -30, 0));
level.bunkerList[3] = createBlock((1754, -109, 298), (0, 0, 0));
level.bunkerList[4] = createBlock((1764, -109, 308), (0, 0, 0));
level.bunkerList[5] = createBlock((1774, -109, 318), (0, 0, 0));
level.bunkerList[6] = createBlock((1784, -109, 328), (0, 0, 0));
level.bunkerList[7] = createBlock((1794, -109, 338), (0, 0, 0));
level.bunkerList[8] = createBlock((1804, -109, 348), (0, 0, 0));
level.bunkerList[9] = createBlock((1814, -109, 358), (0, 0, 0));
level.bunkerList[10] = createBlock((1824, -109, 368), (0, 0, 0));
level.bunkerList[11] = createBlock((1834, -109, 378), (0, 0, 0));
level.bunkerList[12] = createBlock((1844, -109, 388), (0, 0, 0));
level.bunkerList[13] = createBlock((1854, -109, 398), (0, 0, 0));
level.bunkerList[14] = createBlock((1864, -109, 408), (0, 0, 0));
level.bunkerList[15] = createBlock((1874, -109, 418), (0, 0, 0));
level.bunkerList[16] = createBlock((1884, -109, 428), (0, 0, 0));
level.bunkerList[17] = createBlock((1894, -109, 438), (0, 0, 0));
level.bunkerList[18] = createBlock((1904, -109, 448), (0, 0, 0));
level.bunkerList[19] = createBlock((1914, -109, 458), (0, 0, 0));
level.bunkerList[20] = createBlock((1924, -109, 468), (0, 0, 0));
level.bunkerList[21] = createBlock((1934, -109, 478), (0, 0, 0));
level.bunkerList[22] = createBlock((1944, -109, 498), (0, 0, 0));
level.bunkerList[23] = createBlock((1954, -109, 518), (0, 0, 0));
level.bunkerList[24] = createBlock((1964, -109, 538), (0, 0, 0));
level.bunkerList[25] = createBlock((2090, -2415, 277), (0, -30, 0));
level.bunkerList[26] = createBlock((2090, -2475, 277), (0, -30, 0));
CreateElevator((1754, -109, 298), (1964, -109, 658), (0, 0, 0));
}
Summit()
{
}
Nuketown()
{
}
Radiation()
{
}
WMD()
{
}
Villa()
{
}
Credtis for: Eekhoorn, Nukem, Killingdyl and master131 for the building functions.
(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 then
(01-04-2011, 15:45)d0h! Wrote: [ -> ]wtf, pls use code or php tags and pls dont quote such long posts.
(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 then
(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
Next time i will be more carefull