Skip to content

Instantly share code, notes, and snippets.

View Calrissian97's full-sized avatar

Landon Hull Calrissian97

View GitHub Profile
@Calrissian97
Calrissian97 / Enemy AI Hero Spawning Script
Last active September 10, 2018 23:47
Couple Hero-Spawner functions that allow enemy AI to spawn as heroes once the player has spawned as a hero- Battlefront II
local Hero = "ClassNameHere"
local Villain = "ClassNameHere"
local HeroCounter = 1 -- Number of heroes on the field
local PorgTeam = 0 -- PlayerTeam
local HeroIndex = 0 -- Character Index to spawn hero
-- These functions make sure enemy hero only spawns after you've become a hero
HeroWaitingALL = OnCharacterSpawnClass(
function(character)
if IsCharacterHuman(character) then
@Calrissian97
Calrissian97 / BF II Video Settings Switch.bat
Created March 30, 2018 07:38
Little bat to move files around and change therefore change video settings for Battlefront II (2005)
@echo off
title Switch Between HD and SD BF II
REM This batch is used to move shader patch files as well as the HD menu files to a spare directory.
REM This results in the game either in HD or SD quality. Not really useful for many people, but it has some good expamples of stuff.
REM Written by Calrissian97 (c) 2018
cd C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc
if exist core-SP.lvl (
echo +-----------------------------+
@Calrissian97
Calrissian97 / UNMUNGE.bat
Last active September 10, 2018 23:48
Easy swbf-unmunge batch file for default unmunge
@echo off
title SWBF-Unmunge tool: Default BF II
REM This batch is used to save time for inputting commands into CMD for SWBF-Unmunge
REM Written by Calrissian97 (c) 2018
ECHO ----------------------------------------------------------------------------
ECHO Note: filenames are NOT case-sensitive! ;-)
ECHO ----------------------------------------------------------------------------
:start