Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ ### Redneck Name Generator v1 ###]]--
- --[[ ### for Phasor v2 by H® Shaft ###]]--
- -- When a player joins the server, they are assigned a random Redneck Name for the duration of each game.
- -- 132 possible male/female names: such as "Cletus", "Cleon", "Billy Bob" or "Larlene", "Lilah", "Savannah", etc
- -- If a team game, then every other joining player will be assigned a male, then a female name.
- -- If a free-for-all game, joining player will be randomly assigned a any name.
- -- Names will reset between games, and all players given a randomly selected new name. Names show in chat and on scoreboard.
- -- don't edit --
- cur_players = 0
- team_play = false
- function GetRequiredVersion()
- return 200
- end
- function OnScriptLoad(process, game, persistent)
- if game == true or game == "PC" then
- GAME = "PC"
- gametype_base = 0x671340
- network_base = 0x745BA8
- else
- GAME = "CE"
- gametype_base = 0x5F5498
- network_base = 0x6C7988
- end
- cur_players = readword(network_base, 0x1A0)
- if getteamplay() == true then team_play = true else team_play = false end
- end
- function OnNewGame(map)
- if GAME == "PC" then
- gametype_base = 0x671340
- network_base = 0x745BA8
- elseif GAME == "CE" then
- gametype_base = 0x5F5498
- network_base = 0x6C7988
- end
- cur_players = readword(network_base, 0x1A0)
- if getteamplay() == true then team_play = true else team_play = false end
- end
- function getteamplay()
- if readbyte(gametype_base + 0x34) == 1 then
- return true
- else
- return false
- end
- end
- function OnNameRequest(hash, name, new_name)
- if team_play then
- if cur_players == 0 or cur_players == 2 or cur_players == 4 or cur_players == 6 or cur_players == 8 or cur_players == 10 or cur_players == 12 or cur_players == 14 or cur_players == 16 then
- -- 64 male names
- local malenames = {"Beau", "Bobby Joe", "Bodean", "Bubba", "Buck", "Cletus", "Cleon", "Billy Bob", "Beauford", "Jethro", "Orville", "Joe Bob", "Bucephelus", "Wilford", "Clyde",
- "Delmont", "Duke", "Eustice", "Earl", "Floyd", "Forrest", "Jim Bob", "Jimmy Don", "John Boy", "Otis", "Pervis", "Roscoe", "Saggory", "Rufus", "Tiberius", "Billy Bo Bob",
- "Cooter", "Elrod", "Jed", "Jebediah", "Junior, Jr.", "Bubba, Jr.", "Gunther", "Abner", "Barney", "Cal", "Chester", "Cy", "Cyrus", "Gus", "Homer", "Ike", "Jasper", "Jeb", "Jethro",
- "Lem", "Luke", "Wilbur", "Willie", "Zeb", "Zed", "Zeke", "Hayseed", "Big Daddy", "West", "Les", "Meatloaf", "Uncle Ben", "Tucker"}
- local namescount = #malenames
- local rand_name = getrandomnumber(1, namescount+1)
- new_name = string.format("%s", malenames[rand_name])
- table.remove(malenames, rand_name)
- elseif cur_players == 1 or cur_players == 3 or cur_players == 5 or cur_players == 7 or cur_players == 9 or cur_players == 11 or cur_players == 13 or cur_players == 15 then
- -- 68 female names
- local femalenames = {"Ellie Mae", "Sue Ellen", "Earlene", "Bertha", "Peggy Sue", "Daisy Mae", "Henrietta", "Annabelle", "Bambi", "Betty Jo", "Betty Lou", "Billie Jean", "Bobbie Sue",
- "Buffy", "Claudette", "Delilah", "Georgette", "Jaylnn Jo", "Jozelle", "Hattie", "Layla", "Linda Sue", "Martha-Mae", "Roxxy", "Peach", "Patty Sue", "Shaneyney", "Trixibelle",
- "Waynelle", "Beaula", "Brandine", "Larlene", "Lilah", "Savannah", "Shelbylyn", "Lula", "Ronda", "Cherry", "Shawnda", "Vonda", "Destiny", "Claudine", "Dreama", "EvaJo", "Faylene",
- "Gracelyn", "January", "Jazlean", "Kaylin", "Loribelle", "Misty Dawn", "Norma", "Raylene", "Rubyjane", "Sapphire", "Sheena", "Summer", "Sunset", "Tabitha", "Vanity", "Kandy",
- "Erneshia", "Jicelle", "Mandy Lynn", "Misty Rain", "Amaleen", "Baylie", "Brittney"}
- local namescount = #femalenames
- local rand_name = getrandomnumber(1, namescount+1)
- new_name = string.format("%s", femalenames[rand_name])
- table.remove(femalenames, rand_name)
- end
- else
- -- 132 male and female names
- local anynames = {"Beau", "Bobby Joe", "Bodean", "Bubba", "Buck", "Cletus", "Cleon", "Billy Bob", "Beauford", "Jethro", "Orville", "Joe Bob", "Bucephelus", "Wilford", "Clyde",
- "Delmont", "Duke", "Eustice", "Earl", "Floyd", "Forrest", "Jim Bob", "Jimmy Don", "John Boy", "Otis", "Pervis", "Roscoe", "Saggory", "Rufus", "Tiberius", "Billy Bo Bob", "Bubba, Jr.",
- "Cooter", "Elrod", "Jed", "Jebediah", "Junior, Jr.", "Bubba, Jr.", "Gunther", "Ellie Mae", "Sue Ellen", "Earlene", "Bertha", "Peggy Sue", "Daisy Mae", "Henrietta", "Annabelle", "Bambi", "Betty Jo",
- "Betty Lou", "Billie Jean", "Bobbie Sue", "Buffy", "Claudette", "Delilah", "Georgette", "Jaylnn Jo", "Jozelle", "Hattie", "Layla", "Linda Sue", "Martha-Mae", "Roxxy", "Peach", "Tucker",
- "Patty Sue", "Shaneyney", "Trixibelle", "Waynelle", "Beaula", "Brandine", "Larlene", "Lilah", "Savannah", "Shelbylyn", "Lula", "Abner", "Barney", "Cal", "Chester", "Cy", "Cyrus", "Gus", "Homer",
- "Ike", "Jasper", "Jeb", "Jethro", "Lem", "Luke", "Wilbur", "Willie", "Zeb", "Zed", "Zeke", "Hayseed", "Big Daddy", "West", "Les", "Meatloaf", "Uncle Ben", "Ronda", "Cherry", "Shawnda", "Vonda",
- "Destiny", "Claudine", "Dreama", "EvaJo", "Faylene", "Gracelyn", "January", "Jazlean", "Kaylin", "Loribelle", "Misty Dawn", "Norma", "Raylene", "Rubyjane", "Sapphire", "Sheena", "Summer", "Sunset",
- "Tabitha", "Vanity", "Kandy", "Erneshia", "Jicelle", "Mandy Lynn", "Misty Rain", "Amaleen", "Baylie", "Brittney"}
- local namescount = #anynames
- local rand_name = getrandomnumber(1, namescount+1)
- new_name = string.format("%s", anynames[rand_name])
- table.remove(anynames, rand_name)
- end
- return true, new_name
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement