Metamod: Umbra Cloud Around Spawning Skulks
[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>
<a href='http://forums.modns.org/viewtopic.php?t=186' target='_blank'>UmbraSpawn on forums.modns.org</a>
Comments
ummm, depends on the changes really, metamod can do some neat things if you know how it works.
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.
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-->
I wonder if LB will put this on NANO?
that would be great
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.
Just added to my server thanks
Keep up the good work fellas!
Roo
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.
However this problem doesn't exist in the windows version at all. Which is confusing me to high hell.
<!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
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
<!--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.
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>
*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-->