Tremulous Forum

Mods => Modding Center => Topic started by: DaylightDies on June 26, 2008, 06:43:44 am

Title: Granger spit trapper .patch?
Post by: DaylightDies on June 26, 2008, 06:43:44 am
Is there such a patch that any1 has made?
If so may I have the link? I've googled, used mercguild patch tracker, and searched all over here.

When I try to go through all other .patch files that INCLUDE the granger spit trapper ' lock blob' and implement ONLY that, it doesnt work :(
Title: Re: Granger spit trapper .patch?
Post by: Bomb on June 26, 2008, 12:11:36 pm
Why doesn't it work? Is the patch's SVN revision completely different than the source code's? If so, you should do one of three things: port it, find a newer version, or give up. I recommend the first one.

How, exactly, did you extract that feature from the rest of the patch?
Title: Re: Granger spit trapper .patch?
Post by: David on June 26, 2008, 12:16:06 pm
Fixed in SVN: http://svn.icculus.org/tremulous?view=rev&revision=888
I think you just need the bits in g_active.c and trem.h
Title: Re: Granger spit trapper .patch?
Post by: Bomb on June 26, 2008, 12:17:19 pm
trem.h or tremulous.h? Just to clarify this for others.
Title: Re: Granger spit trapper .patch?
Post by: David on June 26, 2008, 12:50:03 pm
tremulous.h

Is there a trem.h?
Title: Re: Granger spit trapper .patch?
Post by: Bomb on June 26, 2008, 12:55:43 pm
Nope. I was just asking you to clarify so people wouldn't get confused. ;)
Title: Re: Granger spit trapper .patch?
Post by: DaylightDies on June 26, 2008, 08:22:01 pm
Bomb, i went through the .patch (opened in a text editor) and picked out anything that looked relevent to blobs, lock blobs, and grangers.
also, david it didnt work. the granger spit didnt do anything except hit to person i hit with it.
No slow, No lock.
Title: Re: Granger spit trapper .patch?
Post by: Bomb on June 26, 2008, 09:43:23 pm
the granger spit didnt do anything except hit to person i hit with it.
No slow, No lock.
Are you sure? The effects aren't obvious. Granger spit does not "lock" the person in place like trappers, it merely slows them down. This probably isn't noticeable to anyone but the victim.
Title: Re: Granger spit trapper .patch?
Post by: DaylightDies on June 27, 2008, 05:27:41 am
Yup he moves like the human normally would.
\\edit i took what u said into consideration, as the blob 'slows humans' well i found slowblob_time_mod is the definition of how slow humans run when hit by the blob, so i made it 0.1ft.

it stops the humans, for a short while, but the human is still able to turn. i will look into how the basi and trapper deal with this and update it a bit more.
Title: Re: Granger spit trapper .patch?
Post by: Lakitu7 on June 27, 2008, 08:46:15 am
Search the source for SS_BLOBLOCKED and you'll find your answer.

Granger spit is SS_SLOWLOCKED. Basy and Trapper is SS_BLOBLOCKED.

Specifically, look at g_missle.c. Now search for "SS_SLOWLOCKED". Make that section of code look like the one directly above it. :)
Title: Re: Granger spit trapper .patch?
Post by: Bomb on June 27, 2008, 11:35:23 am
That looks interesting. I might actually implement something like it in Equilibrium QVM. Cheers!
Title: Re: Granger spit trapper .patch?
Post by: DaylightDies on June 27, 2008, 09:30:25 pm
thnx lakitu :) figured it was something like that from the stuff ive looked at.

all done, it works but needs tweaking.

also SS_GRABBED is basi.
Title: Re: Granger spit trapper .patch?
Post by: Lakitu7 on June 27, 2008, 11:09:54 pm
Ah. I know I remember some places where those two were handled together, but I guess that wasn't one of them. Oh well. Close enough to get it. :)