Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming noob in need.
#12
(01-02-2017, 07:24 PM)Mrocza Wrote: The range of the tower is more or less the same as shooter's range (40)

It's actually 200 engine units, which is 50 meters in-game if I'm reading the code correctly.

Shooters fire range is 0.8 seconds at speed of about 200 engine units/second, which is equal to 50 meters a second, which in turn gives the well-known value of 0.8*50=40 meters.
There is also a small speed randomization which makes the particles look more natural because they don't go in a straight line, but may interfere with this result a bit.

All these calculations assume the default value of g_unit=4 (the game unit to engine unit ratio)


Messages In This Thread
Programming noob in need. - by Quartofel - 12-25-2016, 02:29 PM
RE: Programming noob in need. - by tomangelo - 12-25-2016, 04:14 PM
RE: Programming noob in need. - by Quartofel - 12-25-2016, 04:28 PM
RE: Programming noob in need. - by Quartofel - 12-27-2016, 11:24 PM
RE: Programming noob in need. - by Mrocza - 12-28-2016, 07:55 AM
RE: Programming noob in need. - by Quartofel - 12-28-2016, 12:53 PM
RE: Programming noob in need. - by tomangelo - 12-28-2016, 04:54 PM
RE: Programming noob in need. - by Quartofel - 12-29-2016, 12:50 PM
RE: Programming noob in need. - by krzys_h - 12-29-2016, 01:04 PM
RE: Programming noob in need. - by Quartofel - 12-29-2016, 04:31 PM
RE: Programming noob in need. - by Mrocza - 01-02-2017, 07:24 PM
RE: Programming noob in need. - by krzys_h - 01-02-2017, 08:48 PM
RE: Programming noob in need. - by Mrocza - 01-03-2017, 09:06 AM
RE: Programming noob in need. - by krzys_h - 01-03-2017, 10:02 PM
RE: Programming noob in need. - by tomangelo - 01-03-2017, 11:02 PM
RE: Programming noob in need. - by Mrocza - 01-04-2017, 08:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)