This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To run open a deathmatch server and run this script. Other modes work too but they sometime require a changelevel | |
game_type 3 // Setting the game to deathmatch (might need a changelevel if the server was running a non-dm mode) | |
game_mode 2 | |
//mp_damage_scale_ct_body 0.25 //Couldnt get these settings to work | |
//mp_damage_scale_ct_head 2 //(Got them from the official valve wiki) | |
mp_teamname_1 "Zombies" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys,time,os | |
try: | |
file = open(sys.argv[1]) | |
except IndexError: | |
print "Error: please provide a file" | |
raw_input( "Press any key to exit") | |
print "Opened {0}".format(sys.argv[1]) | |
lines = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomChoice(array) | |
{ | |
var random = Math.random(); | |
random *= array.length; | |
random = Math.floor(random); | |
return array[random] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
weapon_nouns = ["Bat","Bottle","Fists","Launcher","Knife","Axe","SMG","Kukri","Syringe Gun","Flame Thrower","Sticky Launcher","Huntsman","Saw","Shotgun","Revolver"] | |
weapon_adjectives = ["Pain","Direct","Charging","Power","Eternal","Black","Crusader's","Back","Steel","Volcano","Persian","Family","Disciplinary","Atomic"] | |
hat_nouns = ["Hat","Cap","Helmet","Beanie","Fedora","Beard","Earbuds","Bucket","Mask","Head","Gasmask"] | |
hat_adjectives = ["Fancy","Mining","Football","Towering","Expensive","Detective","Splendid","Last"] | |
class Item: | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2,json,time,urllib2,getpass,hashlib,sys | |
from datetime import datetime | |
try: | |
f = open ("date.txt", "r") | |
date = json.load(f) | |
print "Date loaded is " +str(datetime.utcfromtimestamp(1356645899)) | |
f.close() | |
except IOError: | |
print "File not found" |
NewerOlder