can we make a code together ? i mean me and you , (thats my dream , to make a code with you , yamato , OrangePL , Rendflex) :B
edited php tag, please dont use this tag for such kind of code because it mixes /\ up
nice release, +rep
can itsMods make a cod 4 section ?
(06-13-2012, 19:15)Bloodfocus Wrote: [ -> ]can itsMods make a cod 4 section ?
perhaps yes but i have no idea if its worth it
What should we post in there? I guess it will be dead section :S
@
d0h! trust me , it will be cool
what this do:
if(c==random)
{
fakeType = crateType;
break;
}
c++;
}
if(!isDefined(game["strings"][fakeType + "_hint"]))
fakeType = "ammo";
?
C++ Code
random = randomInt(12);
c = 0;
fakeType = "ammo";
foreach(crateType,crateWeight in level.crateTypes[dropType])
{
if(c==random)
{
fakeType = crateType;
break;
}
c++;
}
if(!isDefined(game["strings"][fakeType + "_hint"]))
fakeType = "ammo";
This takes a random airdrop type (chopper, ac130, etc.) and at the end it checks if a localized string for that type exists, if not it takes ammo (but that should never happen).