ItsMods
Giving a weapon with multiple attachments. - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Giving a weapon with multiple attachments. (/Thread-Giving-a-weapon-with-multiple-attachments.html)



Giving a weapon with multiple attachments. - grimrecka - 10-12-2011

Why is it that this work:
Code:
self giveWeapon("hk21_acog_extclip_mp");

But this doesn't:
Code:
self giveWeapon("hk21_extclip_acog_mp");
doesn't?

And how do I know which is the right order to specify attachments for a weapon Huh


RE: Giving a weapon with multiple attachments. - Rendflex - 10-12-2011

Because the weapons are sorted in a alphabetic way?



RE: Giving a weapon with multiple attachments. - Nekochan - 10-12-2011

Because there are weapon files, they're named in sort
like
hk21_acog_silencer_mp - file
u must type same in function


RE: Giving a weapon with multiple attachments. - Rendflex - 10-12-2011

(10-12-2011, 17:21)Se7en Wrote: Because there are weapon files, they're named in sort
like
hk21_acog_silencer_mp - file
u must type same in function

[Image: psn-network-exploit-facepalm.jpg]

He didn't ask for that Tongue


RE: Giving a weapon with multiple attachments. - grimrecka - 10-13-2011

(10-12-2011, 17:21)Se7en Wrote: Because there are weapon files, they're named in sort
like
hk21_acog_silencer_mp - file
u must type same in function

looking in raw\weapons\mp\ that file doesn't actually exist...

taking a look at the hk21, the only files that exist with that name are:

hk21_acog_mp
hk21_elbit_mp
hk21_extclip_mp
hk21_ir_mp
hk21_mp
hk21_reflex_mp

There are no files for dual attachments. There are they odd exceptions for some weapons, like m60_acog_grip_mp, but they only appear when used in combination with a grip attachment. So there isn't a file for every combination of attachments.


RE: Giving a weapon with multiple attachments. - Tomsen1410 - 10-15-2011

LOL, of course there arent... there would be way too much files then.