velocity of bullets

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

velocity of bullets

Post by At0miC »

I tried to change the bullet velocity, I looked in the weapon tik files but found nothing to change it.

Is there a way to change the bullet velocity? Or is it just "Click > Death" with no delay, so this game doesn't work with it.

Any suggestions?

At0miC
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

there are no bullets. not possible i dont reacon.

u can change the fire speed though/rate
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

It might be one of these numbers.

----------------------------------------------------------------------------------
Thompson SMG: Max Eff. Range is 50 yds with a muzzle velocity of 805 ft/s. (.45 ACP round)

firespreadmult 0.08 0.35 200 0.25 // add falloff cap maxtime
movementspeed 1.0
----------------------------------------------------------------------------------
BAR: Max Eff. Range is 500 yds with a muzzle velocity of 2650 ft/s. (30-06 Springfield)

firespreadmult 0.38 0.61 200 0.6 // add falloff cap maxtime
movementspeed 0.9
Tom Trude,

Image
AfterDeath
Corporal
Posts: 26
Joined: Fri Apr 09, 2004 4:34 am
Contact:

Post by AfterDeath »

tltrude wrote:It might be one of these numbers.

----------------------------------------------------------------------------------
Thompson SMG: Max Eff. Range is 50 yds with a muzzle velocity of 805 ft/s. (.45 ACP round)

firespreadmult 0.08 0.35 200 0.25 // add falloff cap maxtime
movementspeed 1.0
----------------------------------------------------------------------------------
BAR: Max Eff. Range is 500 yds with a muzzle velocity of 2650 ft/s. (30-06 Springfield)

firespreadmult 0.38 0.61 200 0.6 // add falloff cap maxtime
movementspeed 0.9
I have little experience with weapon mods, so I recognize these. firespreadmult describes the "spread" pattern for a particular gun (something like that), while movementspeed refers to player movement speed while carrying that gun. In this case 0.9 means you move at 90% of your max speed (1.0) when carrying that gun.

I'm not sure about this one but I also think it is not possible. As far as I know you can only change speed of the rocket, but not bullets. "There are no bullets"
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

tracers

Post by tltrude »

What about the tracers? You can see them moving. Oh, wait, that is probably only an added effect, kind of like the muzzle flash. How about "firdelay"?
Tom Trude,

Image
AfterDeath
Corporal
Posts: 26
Joined: Fri Apr 09, 2004 4:34 am
Contact:

Post by AfterDeath »

I believe firedelay has to do with the interval between bullets being fired. For example, if the firedelay of an MG is set to 0.1, it will shoot 10 bullets per second.

For non-automatic weapons, it represents how long you have to wait til you can shoot again. If you were to set the firedelay of the mauser to that of the M1, both would shoot just as quickly. :D
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Yea, I already understand there are no bullets.
It's just somekind of invisible line, starting from the player. Programmed that the line will move precise to a place where you will aim with you crosshair in for example first person. Some games work with time and distance (programmed) like when you aim on a target and shoot, the line would be static, then the 'game' would calculate how far the target would be for example 500 units, then there is a time programmed like 100 units / 0.10 seconds, so it will take 0.5 seconds until the target will 'hit', but if the taget already moved away while the line was static and the 0.5 second are over, the target won't be killed.
I want to know if something like this is scripted in this game, and if yes, how to change it. I'm not sure if this game don't have this system because when you snipe a target about 2000 units, it's already killed with no delay.
But in the tik files you will find this: for example what tltrude already said: Thompson SMG: Max Eff. Range is 50 yds with a muzzle velocity of 805 ft/s. (.45 ACP round) Iwant to know how to change this.

But then I also want to know where would be the script for hitting targets, so I can add a 'wait' command in or something lol, like when you shoot on a target, it will wait 0.2 seconds (added in the script) untill the target will get a 'hit' , if you know what I mean.

does someone know more?
Shuriken1
Corporal
Posts: 28
Joined: Thu Sep 02, 2004 3:05 pm
Contact:

Post by Shuriken1 »

AfterDeath, firedelay (when used for non-auto weapons) is just there to represent the reloading phase and to stop you firing whilt the reload animation is happening. :) Also, you would have to remove semiauto from the tik to make it full auto - just so you know :)

Atomic, I agree with the other guys, I think it is an immediate invisible line draw from player to player. If theres anyone to ask I would imagine Mefy is the guy to ask, seeing as he did all of that laser stuff in his freezetag mod.
Shuriken1
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Shooting is instantenuous (<-- is that a word? :?) in mohaa... if you set timescale low (0.5 or so) you can see there is a neat bullethole in the wall long before you even see your weapon firing :wink:
Image
Post Reply