rifle bullet help

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

rifle bullet help

Post by neillomax »

I had this posted over at tmt overnight. It got looked at, and thats it so far.

You are running across an inlet, the enemy is shooting at you, you have to
dive in the water to save your life. You fall into water over your head. It's
teeming with 30 foot great white sharks. One of them tries to attack you.
You lift your smg and begin to fire................ how do you create the illusion
of "bullet time" under the water, ( presumeably by a trigger ?, to slow the
bullets down, or some script of one sort or another), because they are flying
as they would if you were still in the atmosphere......... ?


Did I just answer my own question ? Still gonna need some input anyway

//////////////////

Thought about it over night, and thought the way to do it would be to set a trigger, and have it target a script, but I can't find more than one tik file aiming towards the rifle bullet (tik). It's useless. Is there another item or items pertaining to the rifle bullet that I haven't found ?

And is what I am proposeing to do logical ?

How do you slow down the rifle bullet, and only in your "triggered" area ?

http://www.tntreloading.com/tntinc.ivnu
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

water

Post by tltrude »

I aways thought that bullets slow down automattically when fired into, or under, the water surface. So, it would be a property of the water.

You might try, "bulletrange" or "dmbulletrange" as keys in a trigger.
Tom Trude,

Image
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Yes, I tried that, didn't work. I just whipped together a map, jumped in the water, and the bullets still fly as fast as normal. All the range stuff only made them drop closer to the player. I'm not goint to give up on it though. When I can sit down, ( 2 hours a week ), I'll keep fartin' with it. If you think of anything else, please enter your input.....thanks
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

u could put this in the trigger thread:

Code: Select all

setcvar timescale .5
if you want time to go slower make the number a smaller fraction

and if you want it only inside the trigger:

Code: Select all

while(1)
{
  if($player.istouching $yourtrigger)
   {
    setcvar "timescale" "0.5"
   }
   else
   {
    setcvar "timescale" "0.5"
   }
wait 1
}
i think thats right, if im not too rusty
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Thanks, I'll give it a try this week sometime.
Post Reply