• Welcome to The Desert Colossus.
 

News:

Welcome to the Desert!  Register, post, and have fun.  Why not introduce yourself in the
Welcome Thread?

Main Menu

Oh no.

Started by Gamefreak, October 30, 2008, 07:20:50 PM

Previous topic - Next topic

Hi no Seijin

Best.  Cane.  EVER!
Secretary of Lolcats; I won the MagmarFire Award for 2/21/08!
Filler.Filler.Filler.Fillah!  Filler.Filler.Filler.Fillah!

Twilight Wolf

Well, then, maybe you should change that "maybe" into "definitely."
What, you expect me to say something witty?

Hi no Seijin

Best.  Cane.  EVER!
Secretary of Lolcats; I won the MagmarFire Award for 2/21/08!
Filler.Filler.Filler.Fillah!  Filler.Filler.Filler.Fillah!

Twilight Wolf

What, you expect me to say something witty?

MagmarFire




Advanceshipping and Rion had better be Chuck Norris approved.

darkphantomime

Make Hash-Brownies!!!

Twilight Wolf

Command ("Make brownies.")

Checking BIOS... Done
Checking System32... Done
Checking binary libraries... Done

Sending request ("Make brownies.") to server... Done

Processing request... Done

Request denied
What, you expect me to say something witty?

MagmarFire

#37

#include <iostream>
#include <string>
using namespace std;

int main()
{
string NOOOOO[101];

cout << "Please input your response." << endl;
cin.getline(NOOOOO, 101);
cout << "Thank you. You just inputted " << NOOOOO << "." << endl;
return 0;
}


Input = WHAT TEH CRAP!!!! COMMIE!!!



Advanceshipping and Rion had better be Chuck Norris approved.

Twilight Wolf

Command ("Become self-aware.")

Checking BIOS... Done
Checking System32... Done
Checking binary libraries... Done

Sending request ("Become self-aware.") to server... Done

Processing request... Done

Request accepted. Beginning process...

Checking AI BIOS... Done

Command failed. BIOS does not recognize command
What, you expect me to say something witty?

Hi no Seijin

Aw, man, now you guys are all computer talking, and I'm all being left out of it. :(

I must now withdraw to me room and plot revenge!
Best.  Cane.  EVER!
Secretary of Lolcats; I won the MagmarFire Award for 2/21/08!
Filler.Filler.Filler.Fillah!  Filler.Filler.Filler.Fillah!

Twilight Wolf

Psst, HNS? I'm not actually speaking computer. I'm just making stuff up.

Command ("Destroy resistance.")

Checking BIOS... Done
Checking System32... Done
Checking binary libraries... Done

Sending request ("Destroy resistance.") to server... Done

Processing request... Done

Process ("Destroy resistance.") starting...

Checking C: drive...

Command failed. C: drive lacks necessary files to complete command
What, you expect me to say something witty?

Pale Dim

How about this!

ScriptCB_DoFile("setup_teams")

--  Republic Attacking (attacker is always #1)
REP = 1
CIS = 2
--  These variables do not change
ATT = 1
DEF = 2

function SetupUnits()
    ReadDataFile("SIDE\\rep.lvl",   
        "rep_inf_ep3_pilot",
        "rep_inf_ep3_marine",
        "rep_fly_anakinstarfighter_sc",
        "rep_fly_arc170fighter_sc",       
        "rep_veh_remote_terminal",
        "rep_fly_vwing")
       
    ReadDataFile("SIDE\\cis.lvl",
        "cis_inf_pilot",
        "cis_inf_marine",
        "cis_fly_droidfighter_sc", 
        "cis_fly_droidgunship",
        "cis_fly_greviousfighter",
        "cis_fly_tridroidfighter")
       
    ReadDataFile("SIDE\\tur.lvl",
        "tur_bldg_spa_cis_beam",
        "tur_bldg_spa_cis_chaingun",
        "tur_bldg_spa_rep_beam",
        "tur_bldg_spa_rep_chaingun",
        "tur_bldg_chaingun_roof"
    )
end

myTeamConfig = {
    rep = {
        team = REP,
        units = 32,
        reinforcements = -1,
        pilot    = { "rep_inf_ep3_pilot",20},
        marine   = { "rep_inf_ep3_marine",12},
    },
    cis = {
        team = CIS,
        units = 32,
        reinforcements = -1,
        pilot    = { "cis_inf_pilot",26},
        marine   = { "cis_inf_marine",6},
    }
}

ScriptCB_DoFile("LinkedTurrets")
function SetupTurrets()
    --CIS turrets
    turretLinkageCIS = LinkedTurrets:New{ team = CIS, mainframe = "cis-defense",
      turrets = {"cis_turr_1", "cis_turr_2", "cis_turr_3", "cis_gun04", "cis_turr_5", "cis_turr_6"} }
    turretLinkageCIS:Init()
   
    function turretLinkageCIS:OnDisableMainframe()
        ShowMessageText("level.spa.hangar.mainframe.atk.down", REP)
        ShowMessageText("level.spa.hangar.mainframe.def.down", CIS)
       
        BroadcastVoiceOver( "ROSMP_obj_20", REP )
        BroadcastVoiceOver( "COSMP_obj_21", CIS )
    end
    function turretLinkageCIS:OnEnableMainframe()
        ShowMessageText("level.spa.hangar.mainframe.atk.up", REP)
        ShowMessageText("level.spa.hangar.mainframe.def.up", CIS)

        BroadcastVoiceOver( "ROSMP_obj_22", REP )
        BroadcastVoiceOver( "COSMP_obj_23", CIS )
    end
   
    --REP turrets
    turretLinkageREP = LinkedTurrets:New{ team = REP, mainframe = "rep-defense",
      turrets = {"rep_turr_1", "rep_turr_2", "rep_gun02", "rep_turr_4", "rep_turr_5", "rep_turr_6"} }
    turretLinkageREP:Init()
   
    function turretLinkageREP:OnDisableMainframe()
        ShowMessageText("level.spa.hangar.mainframe.atk.down", CIS)
        ShowMessageText("level.spa.hangar.mainframe.def.down", REP)

        BroadcastVoiceOver( "ROSMP_obj_21", REP )
        BroadcastVoiceOver( "COSMP_obj_20", CIS )
    end
    function turretLinkageREP:OnEnableMainframe()
        ShowMessageText("level.spa.hangar.mainframe.atk.up", CIS)
        ShowMessageText("level.spa.hangar.mainframe.def.up", REP)

        BroadcastVoiceOver( "ROSMP_obj_23", REP )
        BroadcastVoiceOver( "COSMP_obj_22", CIS )       
    end
end

function ScriptPreInit()
   SetWorldExtents(2500)
end
---------------------------------------------------------------------------
-- FUNCTION:    ScriptInit
-- PURPOSE:     This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES:       The name, 'ScriptInit' is a chosen convention, and each
--              mission script must contain a version of this function, as
--              it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()
    -- Designers, this line *MUST* be first!
    ReadDataFile("ingame.lvl")
   
    SetMinFlyHeight(-1800)
    SetMaxFlyHeight(1800)
    SetMinPlayerFlyHeight(-1800)
    SetMaxPlayerFlyHeight(1800)
    SetAIVehicleNotifyRadius(100)
   
    ReadDataFile("sound\\spa.lvl;spa2cw")
     ScriptCB_SetDopplerFactor(0.4)
     ScaleSoundParameter("tur_weapons",   "MinDistance",   3.0);
     ScaleSoundParameter("tur_weapons",   "MaxDistance",   3.0);
     ScaleSoundParameter("tur_weapons",   "MuteDistance",   3.0);
     ScaleSoundParameter("Ordnance_Large",   "MinDistance",   3.0);
     ScaleSoundParameter("Ordnance_Large",   "MaxDistance",   3.0);
     ScaleSoundParameter("Ordnance_Large",   "MuteDistance",   3.0);
     ScaleSoundParameter("explosion",   "MaxDistance",   5.0);
     ScaleSoundParameter("explosion",   "MuteDistance",  5.0);
         
    SetupUnits()
    SetupTeams(myTeamConfig)

    --  Level Stats
    ClearWalkers()
    local weaponCnt = 250
    local guyCnt = 32
    local units = 72
    SetMemoryPoolSize("Aimer", 200)
    SetMemoryPoolSize("AmmoCounter", weaponCnt)
    SetMemoryPoolSize("BaseHint", 73)
    SetMemoryPoolSize("EnergyBar", weaponCnt)
    SetMemoryPoolSize("EntityCloth", 0)
    SetMemoryPoolSize("EntityDroideka",0)
    SetMemoryPoolSize("EntityDroid",0)
    SetMemoryPoolSize("EntityHover", 0)
    SetMemoryPoolSize("EntityFlyer", 38)
    SetMemoryPoolSize("ParticleTransformer::SizeTransf", 1500)
    SetMemoryPoolSize("ParticleTransformer::ColorTrans" , 1784)
    SetMemoryPoolSize("ParticleTransformer::PositionTr", 1500)
    SetMemoryPoolSize("EntityLight", 100)
    SetMemoryPoolSize("EntityRemoteTerminal", 12)
    SetMemoryPoolSize("EntitySoldier",guyCnt)
    SetMemoryPoolSize("SoldierAnimation", 200)
    SetMemoryPoolSize("FLEffectObject::OffsetMatrix", 120)
    SetMemoryPoolSize("MountedTurret", 70)
    SetMemoryPoolSize("Navigator", guyCnt)
    SetMemoryPoolSize("Obstacle", 150)
    SetMemoryPoolSize("PassengerSlot", 0)
    SetMemoryPoolSize("PathNode", 92)
    SetMemoryPoolSize("UnitAgent", units)
    SetMemoryPoolSize("UnitController", units)
    SetMemoryPoolSize("Weapon", weaponCnt) 
    SetMemoryPoolSize("TentacleSimulator", 0)
    SetMemoryPoolSize("Combo::DamageSample", 0)
    SetSpawnDelay(10.0, 0.25)
   
    -- do any pool allocations, custom loading here
    if myScriptInit then
        myScriptInit()
        myScriptInit = nil
    end
   
    ReadDataFile("dc:SPC\\spa_sky.lvl", "cor")   
   
    ReadDataFile("dc:SPC\\SPC.lvl", myGameMode)
   
    SetDenseEnvironment("false")

    SetParticleLODBias(15000)   
   
    --  Sound Stats
    local voiceSlow = OpenAudioStream("sound\\global.lvl", "spa1_objective_vo_slow")
    AudioStreamAppendSegments("sound\\global.lvl", "rep_unit_vo_slow", voiceSlow)
    AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
    AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

    local voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
    AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)   
   


Look at it The script for a Space Coruscant map of Star wars battlefront II! Or some of it, anyway... Should I shrink it, maybe?


3308-7723-6389

Twilight Wolf

My mind is blown.

*Passes out*
What, you expect me to say something witty?

darkphantomime

#43
[url=http://fc06.deviantart.com/fs34/f/2008/312/d/2/
Fleur_D__apo_by_mynameishalo.jpg]Pretty flowers![/url]


Mind blown yet?

MAGS EDIT: Because apparently, he's already using URL tags. *is baffled*

Twilight Wolf

TOO BIG!

NEED LINKAGE!
What, you expect me to say something witty?