Forum

Scrag dies but doesn't "fall"

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Scrag dies but doesn't "fall"

Postby redrum » Thu Jul 24, 2008 1:11 am

Guys,
I added a wizard "scrag" to my QW mod.
When it dies, it doesn't fall to the ground.
He just goes through his death animation in mid-air?
How can I get him to drop to the ground?
Thanks.
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Electro » Thu Jul 24, 2008 2:33 am

before dying you could remove the original monster, make a duplicate entity that is just for dying, and set the movetype to MOVETYPE_TOSS

or change the movetype on the fly? maybe.
Benjamin Darling
http://www.bendarling.net/

Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
Electro
 
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia

Postby MeTcHsteekle » Thu Jul 24, 2008 2:37 am

my idea, might not work but,

make it gib at 0 health

do throw gib and make it thrrow scrag?

so it will fall, but it might just fall,

or it could just swirl round in air as it flutters to the ground hmmm :?:
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby Orion » Thu Jul 24, 2008 1:16 pm

Try this:

In its dying function, put this after the gib check:

Code: Select all
self.flags = self.flags - (self.flags & FL_FLY);


and it might work.
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby redrum » Thu Jul 24, 2008 2:34 pm

ok, i'LL TRY ALL OF THOSE THINGS WHEN i GET HOME TOMORROW! (God damn caps lock) :x
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Spike » Fri Jul 25, 2008 7:16 am

and remove the onground flag.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby redrum » Fri Jul 25, 2008 8:34 pm

Orion, I tried yours first and it worked! Thanks.
Thank you to everyone else too!

But, something weird was happening.
Now, if I gib the scrag sometimes one of the gibs is floating in the air and following ne around!?! :shock:
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Orion » Fri Jul 25, 2008 10:07 pm

So try putting that FL_FLY line before the gib check...
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby MeTcHsteekle » Fri Jul 25, 2008 10:40 pm

that bug sounds cool i would keep that in its like "muahahahaha"
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby Elite_Babe1990 » Mon Aug 25, 2008 5:52 am

check for the vertical quantities
I may be cte but I can pwn u at halo!
User avatar
Elite_Babe1990
 
Posts: 4
Joined: Thu Aug 14, 2008 10:22 pm

Postby redrum » Mon Aug 25, 2008 8:46 pm

huh?
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Stealth Kill » Mon Aug 25, 2008 9:04 pm

lol
Stealth Kill
 
Posts: 83
Joined: Fri Dec 29, 2006 12:34 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest