Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Problems adding some sp guns
#1
I am currently having issues adding certain guns to a mod. Now I precacheItem in gsc, added weapon/mp,weapon_sp, and also in changeclass.menu. But for some reason when I spawn the gun will be invisible. Now I successfully added the ppsh, stg44, mp40. But not the mosin_scope. I also tried the m2_flamethrower_mp and I am having the same issue. What am I doing wrong? Thanks in advance.
Reply

#2
Have you made this step from d0h! tutorial ?

go to raw\weapons\mp\<your weapon> <- open it in notepad
search for "parent"
->parentweaponname\m16 delete it (dont forget to make a backup)

Look here and make import with these tutorial step by step!
http://www.itsmods.com/forum/Thread-How-...Tools.html

Reply

#3
(07-30-2011, 15:15)Elite_Nudel Wrote: Have you made this step from d0h! tutorial ?

go to raw\weapons\mp\<your weapon> <- open it in notepad
search for "parent"
->parentweaponname\m16 delete it (dont forget to make a backup)

Look here and make import with these tutorial step by step!
http://www.itsmods.com/forum/Thread-How-...Tools.html

Yes I did. This is what baffles me. I keep tugging on the hair I left on my head.
Reply

#4
You have "Build Mod" made in ModTools to create an .ff ?
And you are sure then you select your mod and start a game with /devmap mp_nuked and make /give m2_flamethrower_mp it dosent work?

Reply

#5
(07-30-2011, 15:23)Elite_Nudel Wrote: You have "Build Mod" made in ModTools to create an .ff ?
And you are sure then you select your mod and start a game with /devmap mp_nuked and make /give m2_flamethrower_mp it dosent work?

Yes I am creating the fastfile. I am running devmode under whitelist.cfg. And give weapon is scripted in the gsc.


primaryWeapon = weapon;
//self iprintln(weapon);
primaryTokens = strtok( primaryWeapon, "_" );
self.pers["primaryWeapon"] = primaryTokens[0];

self GiveWeapon( weapon );

self setSpawnWeapon( weapon );

self SetActionSlot( 3, "altMode" );
self SetActionSlot( 4, "" );
Reply

#6
Did you test it on a server or in pmatch ?

Reply

#7
(07-30-2011, 15:43)Elite_Nudel Wrote: Did you test it on a server or in pmatch ?

combat training. Like I said earlier I have the ppsh, stg44, mp40, all working. Except the mosin scope and flamethrower.
Reply

#8
Well got it fixed with help from MetPL. There was a issue with the script.

f(menu == game["menu_changeclass"] && issubstr(response, "choosed"))
{
split = strtok(response, "&");
self setClientDvar("ui_bolt_weapon", split[0]);
self.pers["ui_bolt_weapon"] = split[0];
self closeMenu();
self closeInGameMenu();
self.selectedClass = true;
self [[level.class]](response);
continue;


Reply

#9
(07-31-2011, 00:57)elmopio Wrote: Well got it fixed with help from MetPL. There was a issue with the script.

f(menu == game["menu_changeclass"] && issubstr(response, "choosed"))
{
split = strtok(response, "&");
self setClientDvar("ui_bolt_weapon", split[0]);
self.pers["ui_bolt_weapon"] = split[0];
self closeMenu();
self closeInGameMenu();
self.selectedClass = true;
self [[level.class]](response);
continue;

@met94 forever <3
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 139,017 05-25-2013, 01:05
Last Post: Nero Z zero
  [HELP]Adding Spaces in a String dhanin 1 1,783 03-30-2013, 16:09
Last Post: Nukem
  [Release] Golden guns and all titles AdamOwnz 34 22,714 03-12-2013, 03:12
Last Post: REAB66
  [FIX] Mw3 server problems 99IRock 0 3,426 02-02-2013, 00:05
Last Post: 99IRock
  Hot Problems AZUMIKKEL 5 3,581 01-20-2013, 16:19
Last Post: Arteq
  Problems trying to import BO2 Camos DidUknowiPwn 3 2,781 12-27-2012, 18:11
Last Post: DidUknowiPwn
  Adding weapons in SP levels shafiq0895 2 3,137 12-13-2012, 16:13
Last Post: shafiq0895
  Help Server problems (Wierd!) 99IRock 3 4,145 12-03-2012, 20:26
Last Post: 99IRock
Question Help My guns 99IRock 4 3,898 11-30-2012, 14:52
Last Post: 99IRock
  Help New .iwi files problems Shady360 3 3,762 11-30-2012, 13:05
Last Post: Shady360

Forum Jump:


Users browsing this thread:
1 Guest(s)

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