Page 1 of 1
Help in allowing wargear pick up in PvP
Posted: Sat 31 Jan, 2015 1:58 am
by Black Relic
http://forums.relicnews.com/showthread. ... -up-in-PvPHere is the link to my post on the relic forums. Any help is appreciated.
Re: Help in allowing wargear pick up in PvP
Posted: Sat 31 Jan, 2015 8:24 am
by Indrid
Moved to the Modding forum.
Re: Help in allowing wargear pick up in PvP
Posted: Sat 31 Jan, 2015 11:38 am
by Swift
For a moment I thought you mean't a system similar to COH 2's RNG wargear dropping. Thankfully tht sin't what you're doing

Though a Force Commander with a heavy bolter...
Re: Help in allowing wargear pick up in PvP
Posted: Tue 17 Feb, 2015 7:53 am
by Black Relic
I actually might need to do that for what i want to accomplish. I found out that the wargear drops I want to use is actually found in wargear on cope. These drops are power req and more that i want to utilize. I don't want weapons dropped and units pick them up. These drops will be either a small buff for a time to extra resources. Since its going to imitate supply lines and how your opponent can seek around and try to steal your resources by shooting and grabbing whatever the crates drop. And i also might be able to add in territory which will effect upgrade times. Like neutral will be normal time, friendly; 5 seconds off or enemy; which will add another 5 seconds or something. idk it will come later if i get that working.
Any who, by chance does anyone know of a way i can have the wargear drop for a death action? Because that's the only way i can see it working. Is forcing the wargear to spawn since i toke away the valid_campaign thing but that didn't work...thanks.
Re: Help in allowing wargear pick up in PvP
Posted: Tue 17 Feb, 2015 2:44 pm
by Wise Windu
Black Relic wrote:Any who, by chance does anyone know of a way i can have the wargear drop for a death action?
Well it seems like they reference "boss", "mini_boss" and "chaff" tags. Not sure what those reference though. It doesn't seem like any of the ebps units have that unit type. I've seen boss and chaff referenced in scar files, so maybe check some of those out. Some of the units in the Last Stand scar files (encounters.scar) have "chaff" unitTags, and you could probably find the tags in some of the campaign scar files as well. There are also _boss scar files for some campaign missions (e.g. intothehive_boss.scar).
Found "chaff" referenced in a bunch of other campaign scar files as well
Re: Help in allowing wargear pick up in PvP
Posted: Fri 20 Feb, 2015 1:48 pm
by Gorbles
Boss-marked units are typically end-of-scenario bosses with a health-bar. Minibosses are anything between that and a regular grunt (so something like a secondary-objective patterned Carnifex or similar, or even just elite units).
Chaff is pretty much everything else. All units that aren't a boss or miniboss are chaff.
There are two ways to assign drops in SP. SP grants wargear drops on death as a part of a loot / rarity pool per kill. Hence the boss, miniboss and chaff ratios. The second way involves using SCaR to allocate an entity (i.e. wargear drop) after a particular game event (both of the wargear drops in the first vDoW II mission are done this way, as they're never randomised and always drop at the same points), which is probably safer for MP modding.
Re: Help in allowing wargear pick up in PvP
Posted: Fri 20 Feb, 2015 7:32 pm
by Myrdal
For scar you could use World_DropWargearAtPosition() or World_DropWargearWithoutOwnerAtPosition(), eg
Code: Select all
World_DropWargearWithoutOwnerAtPosition(my_wargear, Squad_GetPosition(my_target))Just make the scar call from death_actions or GE_SquadKilled event (check skirmish.scar) if you want it dropped on death.