I recently discovered this little problem
This should be as followsCode:class Controller extends Actor..... function AwardAdrenaline(float Amount) { if ( bAdrenalineEnabled ) { Adrenaline += Amount; Adrenaline = Clamp( Adrenaline, 0, AdrenalineMax ); } }
This should be using a FClamp so that the engine doesnt convert the float values into integers. This little typo in the games code, makes it very hard for me cause I needed to have the use of float values so that my mod can work correctly. I am having one hell of a time getting a work around to correctly work. Does any one have any suggestions or ideas on how I could work around this. Basicly my code incements each of the scoing players on every tick in addition to adding 1 to a counter for each player. At the end of each tick, it checks everyones counter and if its >= 5 it will award the player with 1 adrenaline pt. Now it would have been a hole lot easier if I could have just gave each player 0.2 adrenaline on each tick for those players that should get it.Code:class Controller extends Actor..... function AwardAdrenaline(float Amount) { if ( bAdrenalineEnabled ) { Adrenaline += Amount; Adrenaline = FClamp( Adrenaline, 0, AdrenalineMax ); } }
Any one have a better idea oon how to go about this?



Reply With Quote

Bookmarks