From cdde9fb955e79867e585e71a2be5794a9f76441d Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 14 Feb 2014 01:56:01 +0100 Subject: [PATCH] Turned back bodyfunctions example to returning more seldomly --- game/gamesrc/scripts/examples/bodyfunctions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/gamesrc/scripts/examples/bodyfunctions.py b/game/gamesrc/scripts/examples/bodyfunctions.py index 2b79bf6b6c..56534d7beb 100644 --- a/game/gamesrc/scripts/examples/bodyfunctions.py +++ b/game/gamesrc/scripts/examples/bodyfunctions.py @@ -33,9 +33,9 @@ class BodyFunctions(Script): a random check here so as to only return 33% of the time. """ - #if random.random() < 0.66: - # # no message this time - # return + if random.random() < 0.66: + # no message this time + return rand = random.random() # return a random message if rand < 0.1: