Help in allowing wargear pick up in PvP

Modding discussion.
User avatar
Black Relic
Level 4
Posts: 846
Joined: Mon 29 Jul, 2013 3:05 am
Location: United States
Contact:

Help in allowing wargear pick up in PvP

Postby Black Relic » Sat 31 Jan, 2015 1:58 am

http://forums.relicnews.com/showthread. ... -up-in-PvP

Here is the link to my post on the relic forums. Any help is appreciated.
"...With every strike of his sword, with every word of his speech, does he reaffirm the ideals of our honored master..." -From the Teachings of Roboute Guilliman as laid down in the Apocrypha of Skaros. Space Marines Codex pg. 54
User avatar
Indrid
Moderator
Posts: 898
Joined: Mon 04 Feb, 2013 5:06 pm
Location: London
Contact:

Re: Help in allowing wargear pick up in PvP

Postby Indrid » Sat 31 Jan, 2015 8:24 am

Moved to the Modding forum.
User avatar
Swift
Moderator
Posts: 2174
Joined: Wed 22 Jan, 2014 6:40 pm
Contact:

Re: Help in allowing wargear pick up in PvP

Postby Swift » Sat 31 Jan, 2015 11:38 am

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 :P Though a Force Commander with a heavy bolter...
The internal battery has run dry, the game can now be played. However, clock based events will no longer occur.
User avatar
Black Relic
Level 4
Posts: 846
Joined: Mon 29 Jul, 2013 3:05 am
Location: United States
Contact:

Re: Help in allowing wargear pick up in PvP

Postby Black Relic » Tue 17 Feb, 2015 7:53 am

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.
Last edited by Black Relic on Tue 17 Feb, 2015 6:22 pm, edited 1 time in total.
"...With every strike of his sword, with every word of his speech, does he reaffirm the ideals of our honored master..." -From the Teachings of Roboute Guilliman as laid down in the Apocrypha of Skaros. Space Marines Codex pg. 54
User avatar
Wise Windu
Moderator
Posts: 1190
Joined: Sat 14 Sep, 2013 2:22 am

Re: Help in allowing wargear pick up in PvP

Postby Wise Windu » Tue 17 Feb, 2015 2:44 pm

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
Gorbles
Level 3
Posts: 326
Joined: Mon 29 Sep, 2014 10:28 am

Re: Help in allowing wargear pick up in PvP

Postby Gorbles » Fri 20 Feb, 2015 1:48 pm

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.
Myrdal
Admin
Posts: 347
Joined: Mon 15 Apr, 2013 1:47 pm

Re: Help in allowing wargear pick up in PvP

Postby Myrdal » Fri 20 Feb, 2015 7:32 pm

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.

Return to “Modding”



Who is online

Users browsing this forum: No registered users and 0 guests