Jump to content

Recommended Posts

@rekkless: I am currently confronted with the same issue, because i have been to lazy to check up on the correct class names for the init-line. but if you look up the class names of the box you want to use and the ones for the items you want in the box you can clobber smth together i think... (sorry that i cant help more atm)

@rebelvg: I have to strongly second EO's request for the 'self-rolled'-contraband update, as well as i have to suggest a beef jerky update (i suppose the lollipop sounds could be reused here).

Share this post


Link to post
Share on other sites

I have a problem that it does not work inside the server but I have to work well in the editor?

Share this post


Link to post
Share on other sites

Immersion cigs seems to have a tendency to spam server RPT with:

Spoiler

20:17:42 Warning Message: No entry 'bin\config.bin/CfgMagazines.murshun_cigs_lighter'.
20:17:42 Warning Message: No entry '.picture'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.scope'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: Error: creating magazine murshun_cigs_lighter with scope=private
20:17:42 Warning Message: No entry '.displayName'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.displayNameShort'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.nameSound'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.Library'.
20:17:42 Warning Message: No entry '.libTextDesc'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.type'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.count'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.maxLeadSpeed'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.initSpeed'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.reloadAction'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.modelSpecial'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.ammo'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.model'.
20:17:42 Warning Message: '/' is not a value

 

 

Should the server have Immersion cigs as a mod too or if not, why the above spam might be occurring?

Share this post


Link to post
Share on other sites
16 hours ago, Asmodeuz said:

Immersion cigs seems to have a tendency to spam server RPT with:

  Reveal hidden contents


20:17:42 Warning Message: No entry 'bin\config.bin/CfgMagazines.murshun_cigs_lighter'.
20:17:42 Warning Message: No entry '.picture'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.scope'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: Error: creating magazine murshun_cigs_lighter with scope=private
20:17:42 Warning Message: No entry '.displayName'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.displayNameShort'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.nameSound'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.Library'.
20:17:42 Warning Message: No entry '.libTextDesc'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.type'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.count'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.maxLeadSpeed'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.initSpeed'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.reloadAction'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.modelSpecial'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.ammo'.
20:17:42 Warning Message: '/' is not a value
20:17:42 Warning Message: No entry '.model'.
20:17:42 Warning Message: '/' is not a value

 

 

Should the server have Immersion cigs as a mod too or if not, why the above spam might be occurring?

Server should have the files too.

Share this post


Link to post
Share on other sites

Hey guys,

 

I am trying to figure out a way to remove cigs, lighters, matches etc from the player with a script. I found the classnames for the items (and cigs in various stages) and created a simple trigger which ought to removeAllItems upon leaving the trigger area. I did test it with other items that the playe can use but for some reason I cannot get the cigs-items to work. I also tried unlinkItem for equipped items, but it does not seem to work.

 

Do you have any ideas as to how I could do that?

 

Thanks!

Share this post


Link to post
Share on other sites

@Dj Rolnik

I took a quick look at the GitHub page.

If I am not missing something, the packet of cigarettes is a magazine and the cigarette being smoked is... goggles?

 

Share this post


Link to post
Share on other sites

@Maff, yeah I think you're right. Basically the cigs are put in the goggles slot so at this point the unlinkItem should work, but it does not.

 

I also tried the removal of magazines, but to no avail.

Share this post


Link to post
Share on other sites

Yeah ok, so removeGoggles does work on the smoked items.

removeMagazine works for cigarette packs, lighters etc.

However, I cannot seem to find a way to remove individual cigs unpacked from the packet. I thought that a simple removeItems would work, but instead it spewes the below error:

 

Spoiler

cigs-error.png

 

 

Okay, scratch that. player removeItem "murshun_cigs_cig0" actually does work. For some reason the removeItems cmd does not work though. Not a biggie luckily.

 

Thanks @Maff!

 

Share this post


Link to post
Share on other sites

Hello gentleman! This is absolutely amazing... Nothing like lighting one up in a difficult op! Little question tho... Is it possible to add Pack and Lighter via script? tried adding it to respawnInventory... No luck, regardless if in items or magazines. Nothing happens even through addItem.... Any help? Thanks alot! You rock! 

_x addItem "murshun_cigs_lighterItem";  _x addItem "murshun_cigs_cigpackItem";

not working...


    displayName = "Blah";
    icon = "Blah";
    role = "Blah";
    show = "True";
    uniformClass = "Blahs";
    backpack = "Blah";
    weapons[] = {Blah};
    magazines[] = {"Blah","Blah","Blah" ,"murshun_cigs_lighterItem","murshun_cigs_cigpackItem"};
    items[] = {"Blah","Blah","murshun_cigs_lighterItem","murshun_cigs_cigpackItem"};
    linkedItems[] = {"blah"};

not working as well...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×