Serious Sam's Bogus Detour

Serious Sam's Bogus Detour

Workshop
Create, share and play!
Learn More
Trigger Enemies
How do I trigger enemies with ammo, stars and health items? I already figured out how to spawn enemies with picking up weapons but the same way does not work with other items.
< >
Showing 1-4 of 4 comments
Melissa  [developer] 2 5 Jul, 2017 @ 1:13am 
You're using UnitPickedUpTrigger?
Yes
Melissa  [developer] 2 5 Jul, 2017 @ 2:54am 
So the reason this happens is that those items (armor, health, etc) are marked as non-netsynced. This was done as a preliminary measure to avoid too much memory usage due to these items being dropped clientside as loot, for example. Weapon items typically aren't spread around the level so much, so those are properly marked as netsynced.

As a workaround, you can copy the original item and mark them as netsynced yourself. Take a look at this page[ssbd.a000ff.com] on how to extract game assets. After modifying the file, you simply add it as a separate unit to your scenario (eg. "items/armor_large_netsync.unit") and use that as the item.

Also, as an addendum, if you look at the unit file you might see something like this at the top:
%if MOD_HP_1 %else %include "items/respawn_armor.inc"
The line you want to change is inside of that inc file, so remove that %include and replace it with all the contents of the respawn_armor.inc file. This starts with:
%if MOD_VERSUS <unit slot="item"> %else <unit slot="item" netsync="none"> %endif
You would have to change this to simply:
<unit slot="item">

Good luck!
Last edited by Melissa; 5 Jul, 2017 @ 2:55am
Thank you!
< >
Showing 1-4 of 4 comments
Per page: 1530 50