Results 1 to 22 of 22

Stickybombs

  1. #1
    80386
    Guest

    Stickybombs

    Well i finally moved the 76mm upgrade from the tank depot to the Sherman tank and
    got everything working including the popup description of the weapon and the adjusted cost values,

    but now i'm having trouble relocating the stickybomb from the barracks to the riflemen squad.
    Anybody try this with success?

  2. #2
    Can you please be more elaborate on this? I want to know exactly what's going wrong.

    But, I could take my guess and help you accordingly.

    The stickybomb upgrade a global upgrade just like the 76mm (I forgot.) gun upgrade for the Sherman tank. So, they should be identical, except that the target being applied would be the riflemen squad and the upgrade given.

  3. #3
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England
    What exactly are you trying to achieve when you mean relocating?

    If you just want to enable the ability by default, try editing the ally_throw_sticky_bombs ability, removing the requirement for the upgrade to be completed.

    Making the ability active from go.

    Is this what you meant?

  4. #4
    80386
    Guest
    What i'm trying to do is move the stickybomb upgrade from the
    barracks to the riflemen squad.


    If i relocate the stickybomb upgrade "upgrade\allies\armory_use_sticky_bomb.lua"
    from the barracks to the riflemen squad it applies to all riflemen units even though it doesn't have
    any filter actions that i can find. If i use "upgrade\allies\items\allies_squad_item_sticky_bomb.lua"
    it doesn't even show up.

  5. #5
    The owner of the stickybomb upgrade is "player", so the player gets the upgrade when its bought, and the requirement for the stickybomb ability is that the player owns the upgrade. In order for it to work at just the individual squad level, you need to change the upgrade owner to "self" (I think), and change the ability requirement to local upgrade and not player upgrade.

  6. #6
    80386
    Guest
    That might work. I'll try it. Thanks

  7. #7
    80386
    Guest
    No. Same problem. All riflemen teams receive the upgrade ability to use stickybombs.

  8. #8
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England
    I have just tried something similar with the axis grenades, same problem here.

    I want a player upgrade at HQ, which works fine, then a local squad upgrade once the HQ one completes. Placed all the requirements in abilities and upgrades, but the squad seems to always start with the ability no matter what.

    Whats going wrong here?

  9. #9
    Member
    Join Date
    Nov 2006
    Location
    New Zealand
    Have a look at the Axis stuka upgrade. It's the only one I can quickly think of that works in a similar way, ie. it has an ability that requires a per squad upgrade. If you look at the ability file, it uses required slot item rather than required upgrade.

    Edit: Actually, that's probably the excessively complicated way. Maybe something like changing the ability requirement to 'required squad upgrade' would work.
    Last edited by cf_nz; 26th Jun 07 at 3:46 AM.

  10. #10
    Quote Originally Posted by cf_nz
    Edit: Actually, that's probably the excessively complicated way. Maybe something like changing the ability requirement to 'required squad upgrade' would work.
    Isn't that what I suggested above?

  11. #11
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England
    That would make sense.. ill give it a try, report what happens.

    No, you suggeted local upgrade, which is different, but it would have made sense to try the squad one. My bad!

  12. #12
    Member
    Join Date
    Nov 2006
    Location
    New Zealand
    Quote Originally Posted by Sturmhaubitze
    Isn't that what I suggested above?
    Indeed it is, my appologies. I saw the 'it still doesn't work' post 2 below yours and started from scratch.

  13. #13
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England
    So I have now tried this with local_upgrade and squad_upgrade, and neither work.

    Is it because I have given the ability to select squad members only perhaps?

    Just to clarify what I personaly I have tried -

    I have made a requirement for a Axis Grenade upgrade (squad specific) which will only display and be usable when Phase 2 is comleted [works fine]. I want the ability axis_throw_grenade only usable when the Axis Grenade is purchased for that squad. As mentioned above the ability is only available to specific squad members, and not the entire squad.

    Ive tried placing a requirement for both local_upgrade and squad_upgrade in the ability, also changing the upgrade to player_type self or none.

    And it still wont work..

    Any thoughts.. apart from

  14. #14
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England
    OK - got it working.

    This is what I did, the upgrade set it the owner_type to Player, but for global_max_limit and local_max_limit set to 1. Then for the ability set the requirement as a Player_Upgrade et voila.

    Copied the idea from the Supression ability for the allies, only works when BAR upgrade has taken place.

    Happy Modding folks

    Oh, not sure if this has relevance, Validate_Actions is set to False also

  15. #15
    I thought this isn't what 80386 wanted? Under your implementation, you buy it once on the squad, and all squads will receive sticky bombs.

  16. #16
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England

    I thought this isn't what 80386 wanted? Under your implementation, you buy it once on the squad, and all squads will receive sticky bombs.
    Unfortunately for me, you are quite right.. which still doesnt solve the problem then.

  17. #17
    Member
    Join Date
    Nov 2006
    Location
    New Zealand
    It worked fine for me last night. Both the slot item method (though this has symbol icon problems) and required squad upgrade. Each squad had to purchase stickies before the ability was available to use.

  18. #18
    80386
    Guest
    How did you get it to work? All my riflemen squads get the option to use stickies
    after one squad makes the upgrade even though the stickybomb upgrade icon
    is still in the other squads panel waiting to get used.

  19. #19
    Member
    Join Date
    Nov 2006
    Location
    New Zealand
    Have a look at these, it's pretty much as has been descrbed in this thread.

    Is it what you had in mind?

  20. #20
    80386
    Guest
    I'll load the files and give them a try, thanks.

  21. #21
    Member Jarhead's Avatar
    Join Date
    Jan 2007
    Location
    England
    Ok, OK.. I eat humble pie, it works. My only explanation for mine not working is that the upgrade was being placed in the Command panel, and not the Upgrade one. Perhaps where I copied it from?

  22. #22
    80386
    Guest
    Great cf nz! I loaded your attached files and it works. What did you do in the abilities folder?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •