Author Topic: Integer Stuff  (Read 4130 times)

0 Members and 1 Guest are viewing this topic.

Offline PitchBlackCommando

  • Major(1)
  • Posts: 3
Integer Stuff
« on: July 31, 2015, 08:51:09 am »
I'm trying to mod weapon to make it shoot 25 rounds per minute. But value "2.5" cannot be converted into integer.
Can I write something that would make gun shoot 25 rounds per minute and is integerable?

Oh, and also, how can I convert semi-auto into full auto, and vice-versa?
« Last Edit: July 31, 2015, 12:24:15 pm by PitchBlackCommando »

Offline Savage

  • Soldier
  • **
  • Posts: 155
Re: Integer Stuff
« Reply #1 on: July 31, 2015, 02:25:44 pm »
FireInterval=144

Offline PitchBlackCommando

  • Major(1)
  • Posts: 3
Re: Integer Stuff
« Reply #2 on: August 01, 2015, 11:41:09 am »
Oh wait, I meant 25 rounds per second! I always mess up with minutes and seconds.

Offline Savage

  • Soldier
  • **
  • Posts: 155
Re: Integer Stuff
« Reply #3 on: August 01, 2015, 12:58:43 pm »
In Soldat 1 second can be divided only on 60 pieces (ticks) so u have to choose between 2(30 rounds per second) or 3(20 rounds per second) ticks

Offline PitchBlackCommando

  • Major(1)
  • Posts: 3
Re: Integer Stuff
« Reply #4 on: August 02, 2015, 01:19:30 am »
Well, okay. The same with firing mode, I assume?