Shake, where to put it?


posted 05-14-00 05:47 AM PT (US) By: Yuurei
Hi, I'm using (well trying to) the shake util (which is described in BigGuys tut) but I don't know where to put it. I've tried lots of places. (seems I've tried everywhere at this moment). I'm trying to make the ground shake when an handgreande explodes. Where should I put the:
(UTIL_ScreenShake( pev->origin, 5, 5, 5, 0);
in the handgrenade code?

And if I want it in every explosion, where should I put it then?

And maybe you notice something with the code above...I had to change the functions to numbers cause otherwise it wouldn't compile...

Thx in advance



posted 05-14-00 09:41 AM PT (US) By: DaViruz
Tjena Yuurei!
Fler svenskar här..

Umf, im sorry:
Hi Yuurei!
More Swedes here...

Try putting the code where the explosion goes off...




DrugDealers - A Half-Life Mod



posted 05-14-00 09:55 AM PT (US) By: MurdeR
Det finns allt fler svenskar här:-)

ska ni vara med och göra en mod?

translation
There is more swedish people here:-)

Do yuo want to make a mod?

.............................................
ICQ: 40096734
MAIL: Jonas@vvv.gq.nu
WEBSITE AT: http://strimlad.cjb.net/
Working on a mod called STRIMLAD
NEED CODERS, SKINNERS, MODELLERS, MAPPERS
.............................................
.........MvH / Jonas Linder



posted 05-14-00 10:50 AM PT (US) By: Yuurei
haha..tjena på er. Hur visse du att jag var svensk?

Sen så har jag letat men inte lyckats sätta koden där den ska vara. Jag har kollat i både handgrenade.cpp och explode.cpp.

Vet du?

--------------------------------
Translation: (For everyones pleasure)

haha...hi ya all. How did you know I was swedish?
I've been looking for the right spot to put the code but haven't found it. I've looked in both handgrenade.cpp and explode.cpp.

You know?

//Yuurei

P.S. This will soon be a Learn To Spaek Swedish thread...

P.S I'm working on the StarShip Troopers mod, so maybe 2 mods would be too much for me. :)

[Edited by Yuurei (05-14-00)]

---------------------
Now I have become Death, the destroyer of worlds...



posted 05-14-00 11:38 AM PT (US) By: Sookie
Put it in the Explod() fucntion

Do you have a friend or relative who would
make a valuable addition to the Kraken Technologies team? Immediate openings are avalible in the areas of: Web design, 3D animation and sound desgin. Please contact uncons@crosswinds.net for furthur information.

Please excuse my terrible english: I'm american.



posted 05-14-00 11:47 AM PT (US) By: DaViruz
Yuurei, try clicking this button------/\

[Edited by DaViruz (05-14-00)]




DrugDealers - A Half-Life Mod



posted 05-14-00 11:59 AM PT (US) By: ZybOrg
Svenskar överallt! :D

---
Coder for Urban Warfare and Day of Defeat
http://www.planethalflife.com/urbanwarfare/
http://www.dayofdefeat.net/



posted 05-14-00 02:07 PM PT (US) By: Yuurei
Explode()? where? In handgrenade.cpp? I have looked in that but haven't found any Explode().
So, in which file and where in that file?

Can't find it anywhere... please help, this is driving me crazy. And don't think I haven't tried... I don't post a question here without to have tried it several times before.

[Edited by Yuurei (05-14-00)]

---------------------------------------------
Now I have become Death, the destroyer of worlds...



posted 05-14-00 08:22 PM PT (US) By: jeff
Explode is in grenade.cpp, you hold a handgrenade and when you throw it a grenade is created, so the grenade explodes not a handgrenade :)

Jeff.


Jeff.

Coder - SWARM! http://www.planethalf-life.com/swarm/



posted 05-15-00 05:45 AM PT (US) By: Yuurei
Thanx alot(!!) Jeff. I finally got it to work... lots o thanx to all who helped.

:)

-----------------------------------------
Now I have become Death, the destroyer of worlds...