New mod

Posts 1–5 of 5 · Page 1 of 1
New mod
hi guys
I want to make a mod that replaces certain weapons, perks ETC to remove all the overpowered things in mw2 and show at IW how the game should had been done.

but im completly new to all this
im learning visual basic but it is so diferent from c++

could someone help me doing it? i don't need the all code just the start, exemple to show me how i must do and from there i think i can do it by myself

thx
It's not Visual Basic or C++. It's GSC. Mw2 Uses GSC.
oh really? hm... i seems to me c or c++ whatever

gsc so that is the language i have to learn...
but still, could someone help me doing the mod?

just give me the example of when user have rpg as secundary weapon it will replace by desert eagle.

please i don't think im asking too much


here is a bit of what i need:
isValidEquipment( refString )
{
switch ( refString )
{
case "frag_grenade_mp":
//case "semtex_mp":
//case "throwingknife_mp":
//case "specialty_tacticalinsertion":
//case "specialty_blastshield":
//case "claymore_mp":
//case "c4_mp":
return true;
default:
assertMsg( "Replacing invalid equipment: " + refString );
return false;
}
}

EDIT:
well... i am working on hard but this s*** is complicated

GunCheck()
{
while(1) {
if(!isValidPrimary(self getCurrentWeapon())) { //If current weapon is not in the isValidPrimary list
self takeAllWeapons(); // Take all weapons
self giveWeapon( "ak47_mp", 0, false ); //Gives them a weapon
while(self getCurrentWeapon() != "ak47_mp") { //After given weapon, checks if the player hasn't switched to the gun
self switchToWeapon("ak47_mp"); //Switches to the gun for you
self setWeaponAmmoStock("ak47_mp", 0 ); //Replace 0 to how much ammo stock you want
self setWeaponAmmoClip("ak47_mp", 0 ); //Replace 0 to how much ammo clip you want
wait 0.05; }
}
}
}

isValidPrimary( primary )
{
switch ( primary )
{
case "ump45":
return true;
}
return false;
}
guys for example this code
if the player don't use ump45 then the weapon will be replaced by ak47

but look at "self takeAllWeapons" i don't want to take all weapons only the primary to replace it. is there a command to took only the primary? example: takePrimary or takePrimaryWeapon

I DIDNT TEST THIS YET BUT I ASSUME THE CODE IS CORRECT

EDIT2:
OMG I GIVE UP!!
i suck at modding. even a simple thing such as replace guns im not able to do...
Well:
Well, this is solved I would say now.

I have helped him for 2 days now.

So I teatched him some GSC and now he have his first mod.




yes u did^^
luckily i found u

thank u very much. the mod is almost complete and will be release soon

mods may close
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us