| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| Rounds Per Minute; Using global.time_factor | |
|---|---|
| Tweet Topic Started: Dec 4 2007, 08:05 AM (794 Views) | |
| Linkin | Dec 4 2007, 08:05 AM Post #1 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
How could i calculate the rounds per minute from my weapon using global.time_factor? |
![]() Want something done in Photoshop, make a request Here Formerly known as DS-Development. | |
![]() |
|
| harkathmaker | Dec 4 2007, 06:22 PM Post #2 |
|
Persistent Enquirer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What specifically is global.time_factor? Time between each shot, or the variable you want set to RPM? |
![]() |
|
| Linkin | Dec 4 2007, 10:40 PM Post #3 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
global.time_factor=100/max(20,fps); global.time_factor is a variable made by Dr.Best for keeping things independent from the framerate, I need this solved because i want to be able to alter weapon stats ingame and test the Rounds fired per minute. But i don't want the fps to be a problem. |
![]() Want something done in Photoshop, make a request Here Formerly known as DS-Development. | |
![]() |
|
| skarik | Dec 5 2007, 06:21 AM Post #4 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
1000 milliseconds in a second? 60000 in a min. if (abs(current_time - old_time ) > 60000) { rpm = temporary_count; temporary_count = 0; old_time = current_time; } |
| Blog|EHS | |
![]() |
|
| Linkin | Dec 5 2007, 08:01 AM Post #5 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Err sorry how do i use that? What part in that changes the rpm? |
![]() Want something done in Photoshop, make a request Here Formerly known as DS-Development. | |
![]() |
|
| skarik | Dec 6 2007, 02:28 AM Post #6 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Checks if it has been a minute.
Sets the variable 'rpm' to a variable you have to set yourself, called 'temporary_count' and should be used like this:
You can edit it, maybe like this:
|
| Blog|EHS | |
![]() |
|
| Eansis | Dec 6 2007, 04:04 PM Post #7 |
|
ghost
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Or you could just load up nifty ol "ms calculator" and use some classic "dimensional analysis" to solve for the elusive rpm. |
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY
| |
![]() |
|
| skarik | Dec 7 2007, 01:38 AM Post #8 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Dimensional Analysis sucks. Last year, in Algebra 2, the quiz for that was the only thing I didn't get a 100% on. Anyways, there's only one linear equation, so there's no way you can use dimensional analysis. Unless there's some whole piece of it I never learned in class. |
| Blog|EHS | |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)




9:37 PM Jul 11