Ok Sorry But I Have To Ask..
Meow_Mix
Join Date: 2003-10-11 Member: 21594Members
<!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo--> I reamember seeing a plugin that allowed Goreges to build on walls and cealings(?) but i cant remember where.. If someone could maybe tell me where i saw it and to link where to get it maybe i would greatly apreciate it. <!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo-->
thx.
<!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo-->
thx.
<!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo-->
Comments
Nicely done mod, however there is a slight problem.
In your spawn OC code:
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->// The building's owner can walk through it... how did Flayra prevent this but still credit OC kills?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
The owner of the OC is stored either as CBasePlayer or CBaseEntity on the CBaseEntity code for the OC's, I have tried several times to hack it, but with no success. Also last time I tried spawning offense chambers, the server will crash when the OC kills someone.
In your spawn OC code:
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->// The building's owner can walk through it... how did Flayra prevent this but still credit OC kills?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
The owner of the OC is stored either as CBasePlayer or CBaseEntity on the CBaseEntity code for the OC's, I have tried several times to hack it, but with no success. Also last time I tried spawning offense chambers, the server will crash when the OC kills someone.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Thanks <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> It's certainly the most complex plugin I've ever done - it certainly taught me to test things before declaring them done. I'm not sure if the comment in the code is still accurate... I'm fairly certain the latest version of the plugin has solid buildings (with the bounding-boxes adjusted according to orientation). I think the problem was solved by making sure I called UTIL_SetSize <u>before</u> UTIL_SetOrigin (<a href='http://www.mail-archive.com/hlcoders@list.valvesoftware.com/msg01358.html' target='_blank'>related hlcoders post</a>). I never had any success setting the owner of an OC either -- I tried setting pev->owner, but that allows the gorge who built it to walk through the OC. I ended up ignoring the problem and hoping no-one noticed their OC kills weren't credited <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> I think the problem with OC's crashing the server can be avoided if you make sure to set the following:<!--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-->// Team 2 = aliens
pev->team = 2;
// If iuser3 isn't set then the building won't show up on the minimap
pev->iuser3 = AVH_USER3_OFFENSE_CHAMBER;
// If these flags aren't set then the building can't be built and the health ring won't show up
pev->iuser4 = MASK_BUILDABLE + MASK_SELECTABLE;<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
<!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo--> <----gorgey yay!