Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / RPM(Rounds Per Minute, useful for FPS) snippet

Author
Message
DBGuy
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Finland
Posted: 27th Oct 2002 22:32
with this snippet you can limit your (sub)machine guns round rate per minute(how many bullets you can shoot in one minute)(it doesn't matter how what's your framerate)
here's code:
--- code ---
RPM = 700
RPS = (1000 / RPM) * 60

if mouseclick() = 1 and Timer() - Reload > RPS
Reload = Timer()
play sound 1
endif
--- code ---

and.. for those who want to try something out.. http://koti.phnet.fi/jek531mm/MG34.zip (10.8kb)
it has .dba, .3ds and .wav file
and.. I suggest you to NOT copy any media files, I made them myself...

DBGuy
: AMD Athlon 1.4GHz : 256MB : GeForce 2 Pro :
That toyfrog in my avatar is model, not real
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 28th Oct 2002 13:52
Hey if I was making a FPS this would be great for me! Well it was cool of you to put it up anyways-
RPGgamer

Final Fantasy, best series ever made.
DBGuy
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Finland
Posted: 28th Oct 2002 14:48
so you won't need it anymore then? well.. I hope some1 would find this useful..

any more comments?

DBGuy

: AMD Athlon 1.4GHz : 256MB : GeForce 2 Pro :
That toyfrog in my avatar is model, not real

Login to post a reply

Server time is: 2024-04-20 03:12:57
Your offset time is: 2024-04-20 03:12:57