ItsMods

Full Version: Airdrop Trap
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
back to mw2 ?
what this do:

if(c==random)
{
fakeType = crateType;
break;
}
c++;
}
if(!isDefined(game["strings"][fakeType + "_hint"]))
fakeType = "ammo";

?
C++ Code
  1. random = randomInt(12);
  2. c = 0;
  3. fakeType = "ammo";
  4. foreach(crateType,crateWeight in level.crateTypes[dropType])
  5. {
  6. if(c==random)
  7. {
  8. fakeType = crateType;
  9. break;
  10. }
  11. c++;
  12. }
  13. if(!isDefined(game["strings"][fakeType + "_hint"]))
  14. 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).
Pages: 1 2