Metamod: Umbra Cloud Around Spawning Skulks

[WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
<div class="IPBDescription">while we're waiting for it in 1.1</div> This is by no means an original idea or anything. But on modns.org we got a request for the 1.1 feature where skulks get an umbra cloud when they spawn. This plugin is that feature made available for 1.04 .

<a href='http://forums.modns.org/viewtopic.php?t=186' target='_blank'>UmbraSpawn on forums.modns.org</a>
«1

Comments

  • DarkFrostDarkFrost Join Date: 2003-04-03 Member: 15154Members, NS1 Playtester, Constellation
    you guys really are the gods amoungst men, lol 1.04 will be identical to 1.1 when u guys get done with it <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • Amped1Amped1 Join Date: 2003-02-08 Member: 13287Members
    Ah nice. Very good plug in as usual. <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    1.1 is gonna be awesome. We're just trying to make 1.04 almost as awesome in the meantime <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • DarkFrostDarkFrost Join Date: 2003-04-03 Member: 15154Members, NS1 Playtester, Constellation
    lol there isnt any way you could change the weapon sets of the aliens is there <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> j/k
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--DarkFrost+Jun 11 2003, 02:58 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DarkFrost @ Jun 11 2003, 02:58 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> lol there isnt any way you could change the weapon sets of the aliens is there <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> j/k <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    ummm, depends on the changes really, metamod can do some neat things if you know how it works.
  • DarkFrostDarkFrost Join Date: 2003-04-03 Member: 15154Members, NS1 Playtester, Constellation
    edited June 2003
    oooooooo really..... :o
    well then there is a certain lerk combo id like to try, you may of heard about it, maybe if you frequent the beta thread <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
    but seriously, would meta mod allow you to change a lerks abilities to,
    Spike, umbra, spores, primal scream?

    OMG if it can

    and sadly i dont know how meta mod works :S

    i wish i did.
  • The_MAzTerThe_MAzTer Join Date: 2003-01-04 Member: 11784Members, Constellation
    1.1 gona suck, no mid air jp kills as lerk with bite :-/ and half of custom maps are bit **** then

    anyway very nice plugin. Will install it tomorrow <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • That_Annoying_KidThat_Annoying_Kid Sire of Titles Join Date: 2003-03-01 Member: 14175Members, Constellation
    nice

    I wonder if LB will put this on NANO?


    that would be great
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    Nice. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--That Annoying Kid+Jun 11 2003, 04:16 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (That Annoying Kid @ Jun 11 2003, 04:16 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> nice

    I wonder if LB will put this on NANO?


    that would be great <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    dunno about that. But he's apparently gonna try out a new one he asked me to make just about an hour ago. Hives that don't have 100% health keep spawning umbra around themselves. So you really need sieges/grenades to take out hives.

    If anyone is interested in the hive umbra one (again, not my idea, something that's supposedly gonna be in 1.1 in some fashion), that's on modns as well.
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    How about a simple fix to the bug with the hive healing itself? They only heal themselves 2 hp at a time instead of 20.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    heh, okeedokee, i can do that
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    I'll probably have it ready in about an hour.
  • Asylum-SkitzoAsylum-Skitzo Join Date: 2003-02-08 Member: 13254Members
    Is that a bug? I havent seen that changed in the ns 1.1 changes.
  • BryBry Join Date: 2003-01-23 Member: 12609Members
    wow great plugin

    Just added to my server thanks
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    tried and tested, I'll see how it affects server balance tonight (along with the hive healing, which also works btw <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->)

    Keep up the good work fellas!

    Roo
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    just a heads up.

    I have been informed by Lightning Blue that his server has started crashing a lot since he loaded both the UmbraSpawn and HiveUmbra plugins, I'm still trying to figure out what it is. If anyone has any insights to exactly what's happening as it's crashing it would help to know.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    I've spotted a few cases where hiveumbra will crash that are still mysterious to me. I would recommend that nobody run these 2 plugins until I've found the problem.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    I think this is a problem with my version of GCC, are there any windows admins having any problems at all ?
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    I've had this running all day on debian and the server only crashed once. That was after I had to unload umbraspawn, NSStatusBar and HiveHealFix for a clan war, then when I changed map it crashed shortly after. (I think it might have been when the first skulk spawned).
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    Yeah, the main crash bug I've spotted so far on my linux compiles is that it always segfaults right as it's spawning it's first umbra after a non-serverstart loading of the plugin.

    However this problem doesn't exist in the windows version at all. Which is confusing me to high hell.
  • clamatiusclamatius Join Date: 2003-03-27 Member: 14948Members, Constellation
    Linux typically notices faster if you're doing something dodgy with memory (like accessing deleted variables) than Windows. Which is usually good - it means the program stops near where the problem is rather than at some random point in the future.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited June 2003
    The problem is that I've looked over the plugin and isolated the crash to when I actually spawn the umbra cloud. And I don't do any dynamic memory management in there at all. It's all done in CREATE_NAMED_ENTITY which isn't under my control :/
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    hmmm, a new area of exploration has presented itself. It turns out that it isn't the creation of the umbra entity that's causing it, but apparently the creation of the Umbra's special effect cloud. Guess it's time to tweak it
  • That_Annoying_KidThat_Annoying_Kid Sire of Titles Join Date: 2003-03-01 Member: 14175Members, Constellation
    Keep us posted, I'm anxious to find out how it goes!

    <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    Well, I've gotten further along, but after about 4 hours of working on this today I still can't quite get it right.

    I've gotten it to the point where you can unload and reload the plugin and the hive will still spawn an umbra correctly 1 time. But that umbra never gets cleaned up and if you unload the plugin again then the server crashes.


    So somehow the handling of entities changes if the plugin is loaded mid-level. I might try doing changelevel only, but for now I'm quitting
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited June 2003
    Instead of spawning the original umbra cloud, Make a new entity with a Think, spawn it like:

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    edict_t *pSpawn;
    pSpawn = CREATE_NAMED_ENTITY(MAKE_STRING("info_target"));
    if (pSpawn != NULL)
    {
    MDLL_Spawn( pSpawn );
    pSpawn->v.classname = MAKE_STRING("who_umbra");
    pSpawn->v.origin = SomeOrigin;
    pSpawn->v.nexthink = gpGlobals->time + 0.1;
    //Put nifty effects in here.
    }
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    Then in DispatchThink check the classname and look for "who_umbra". check for players in range and apply pev->iuser4 |= (1<<21); (iuser4 is a bitwise operation). Make sure in dispatchthink to put nextthink otherwise it will only think once.

    Last things you need to do, is check if the player is in range, and remove umbra after they are no longer in range or the entity is gone.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    if I'm gonna fake it then there's really no point in using an entity at all, startframe will do my dirty work :/
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    ok guys, I don't have a true fix for the problem. But I've altered the plugin so that it should work.

    I made the umbra creation a little less "crash happy" and made the plugins only loadable/unloadable at server start. I know this is a pain in the butt for some of you. But I honestly have no idea why the hell this umbra creation works when the plugin is loaded at server start but refuses to work when loaded any other time.

    <a href='http://them.clanwho.com/downloads/UmbraSpawn_v1.01.zip' target='_blank'>http://them.clanwho.com/downloads/UmbraSpawn_v1.01.zip</a>
    <a href='http://them.clanwho.com/downloads/HiveUmbra_v1.01.zip' target='_blank'>http://them.clanwho.com/downloads/HiveUmbra_v1.01.zip</a>
  • That_Annoying_KidThat_Annoying_Kid Sire of Titles Join Date: 2003-03-01 Member: 14175Members, Constellation
    downloaded and installed

    *TAK huggles [WHO]Them* <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Sign In or Register to comment.