Thread
:
GetRandomInt/SetRandomSeed
View Single Post
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
10-16-2009 , 06:55 Re: GetRandomInt/SetRandomSeed
#
4
I didn't check to see what RoundFloat was returning. Previously, I had just tried using GetRandomInt as i had in the past, and it kept giving me 24, every single time.
I did some searching, saw a post about using setrandomseed, thought I'd try it, but still 24. So I posted here late in tired frustration!
New day, clear head, I'm gonna take more stabs over it with coffee.
EDIT Update: I give up. Once you get some playtime under your belt and a map changes, it at least randomizes somewhat. I guess due to the nature of the call itself, when you first start the server up, it's just always going to be the same random Int. Look forward to 1.3 =)
X
__________________
Menu Based Rules
|
1v1 Knife Fight
|
Warmup Round
Scout No Scope
|
Headshot Only
|
Last edited by XARIUS; 10-16-2009 at
08:02
.
XARIUS
View Public Profile
Send a private message to XARIUS
Visit XARIUS's homepage!
Find More Posts by XARIUS