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", 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.

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 4,037 07-29-2013, 20:14
Last Post: Rendflex
  [Release] nCr and Factorial Functions Yamato 2 3,750 06-18-2013, 17:24
Last Post: Nekochan
  [Release] Random Functions 1.1 Yamato 22 18,200 04-20-2013, 10:13
Last Post: Dominator56
  [Release] Enhanced Botz alistair3149 11 32,712 01-02-2013, 12:59
Last Post: Paroxysmics
  Functions surtek 14 14,678 09-19-2012, 07:57
Last Post: Pozzuh
Information [Solved] Info about functions, events and etc. Nerus 2 3,551 09-09-2012, 20:57
Last Post: surtek
  Seldom required functions Phl3x_ 3 4,304 06-03-2012, 10:53
Last Post: RaZ
  Help I find This functions and i need your help. Bloodfocus 5 5,106 04-23-2012, 01:43
Last Post: House
  Help Functions iPrintLnBold() [Z00MBY] Alex 7 7,863 04-16-2012, 08:44
Last Post: [Z00MBY] Alex
  Preview Racing Mod Enhanced iAegle 18 13,618 03-25-2012, 05:35
Last Post: rotceh_dnih

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.