Skip to content

Commit

Permalink
Promod LIVE V2.11 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivve authored and Ingramz committed Feb 22, 2011
1 parent 2a7f3c5 commit bcef57d
Show file tree
Hide file tree
Showing 137 changed files with 3,092 additions and 3,164 deletions.
2 changes: 1 addition & 1 deletion compile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@echo off

SET mod_name=promodlive210
SET mod_name=promodlive211
SET work_directory=%~dp0
cd %work_directory%

Expand Down
4 changes: 2 additions & 2 deletions compile_fastfile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
SET work_directory=%~dp0
cd %work_directory%

xcopy localizedstrings ..\..\raw\english\localizedstrings\ /SY
xcopy maps ..\..\raw\maps\ /SY
xcopy promod ..\..\raw\promod\ /SY
xcopy shock ..\..\raw\shock\ /SY
Expand All @@ -19,12 +20,11 @@ xcopy soundaliases ..\..\raw\soundaliases\ /SY
xcopy ui_mp ..\..\raw\ui_mp\ /SY

copy mod.csv ..\..\zone_source /Y
copy promod.str ..\..\raw\english\localizedstrings /Y

cd ..\..\bin
linker_pc.exe -language english -compress -cleanup mod -verbose

cd ..\mods\promodlive210
cd ..\mods\promodlive211
copy ..\..\zone\english\mod.ff

pause
Binary file added images/~80s_econ_glass_spc-rgb&80s_e~29444396.iwi
Binary file not shown.
16 changes: 16 additions & 0 deletions localizedstrings/cgame.str
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) 2009-2017 Andreas Göransson <[email protected]>
// Copyright (c) 2009-2017 Indrek Ardel <[email protected]>
//
// This file is part of Call of Duty 4 Promod.
//
// Call of Duty 4 Promod is licensed under Promod Modder Ethical Public License.
// Terms of license can be found in LICENSE.md document bundled with the project.

VERSION "1"
CONFIG "C:\trees\cod3\cod3\bin\StringEd.cfg"
FILENOTES ""

REFERENCE SPECTATORS
LANG_ENGLISH "Shoutcaster"

ENDMARKER
157 changes: 13 additions & 144 deletions maps/mp/_destructible.gsc

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions maps/mp/_destructible_types.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/

#include maps\mp\_destructible;
#using_animtree( "vehicles" );

makeType( destructibleType )
{
Expand Down Expand Up @@ -100,12 +99,10 @@ makeType( destructibleType )
vehicle_small_hatch( "white" );
break;
default:
assertMsg( "Destructible object 'destructible_type' key/value of '" + destructibleType + "' is not valid" );
break;
}

infoIndex = getInfoIndex( destructibleType );
assert( infoIndex >= 0 );
return infoIndex;
}

Expand Down Expand Up @@ -140,7 +137,6 @@ vehicle_80s_sedan1( color )
destructible_fx( "tag_death_fx", "explosions/small_vehicle_explosion", false );
destructible_sound( "car_explode" );
destructible_explode( 4000, 5000, 375, 20, 300 );
destructible_loopfx( "tag_hood_fx", "smoke/car_damage_blacksmoke_fire", 9999 );
destructible_state( undefined, "vehicle_80s_sedan1_" + color + "_destroyed", undefined, 32, "no_melee" );

tag = "tag_hood";
Expand Down Expand Up @@ -239,7 +235,6 @@ vehicle_80s_wagon1( color )
destructible_fx( "tag_death_fx", "explosions/small_vehicle_explosion", false );
destructible_sound( "car_explode" );
destructible_explode( 4000, 5000, 250, 20, 300 );
destructible_loopfx( "tag_hood_fx", "smoke/car_damage_blacksmoke_fire", 9999 );
destructible_state( undefined, "vehicle_80s_wagon1_" + color + "_destroyed", undefined, 32, "no_melee" );

tag = "tag_hood";
Expand Down Expand Up @@ -348,7 +343,6 @@ vehicle_80s_hatch1( color )
destructible_fx( "tag_death_fx", "explosions/small_vehicle_explosion", false );
destructible_sound( "car_explode" );
destructible_explode( 4000, 5000, 250, 20, 300 );
destructible_loopfx( "tag_hood_fx", "smoke/car_damage_blacksmoke_fire", 9999 );
destructible_state( undefined, "vehicle_80s_hatch1_" + color + "_destroyed", undefined, 32, "no_melee" );

tag = "tag_hood";
Expand Down Expand Up @@ -441,7 +435,6 @@ vehicle_small_wagon( color )
destructible_fx( "tag_death_fx", "explosions/small_vehicle_explosion", false );
destructible_sound( "car_explode" );
destructible_explode( 4000, 5000, 250, 20, 300 );
destructible_loopfx( "tag_hood_fx", "smoke/car_damage_blacksmoke_fire", 9999 );
destructible_state( undefined, "vehicle_small_wagon_" + color + "_destroyed", undefined, 32, "no_melee" );

tag = "tag_hood";
Expand Down Expand Up @@ -534,7 +527,6 @@ vehicle_small_hatch( color )
destructible_fx( "tag_death_fx", "explosions/small_vehicle_explosion", false );
destructible_sound( "car_explode" );
destructible_explode( 4000, 5000, 250, 20, 300 );
destructible_loopfx( "tag_hood_fx", "smoke/car_damage_blacksmoke_fire", 9999 );
destructible_state( undefined, "vehicle_small_hatch_" + color + "_destroyed", undefined, 32, "no_melee" );

tag = "tag_hood";
Expand Down
12 changes: 5 additions & 7 deletions maps/mp/_explosive_barrels.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ main()
qBarrels = true;
if (qBarrels)
{
level.breakables_fx["barrel"]["explode"] = loadfx ("props/barrelExp");
level.breakables_fx["barrel"]["explode"] = loadfx ("props/barrelExp");
level.breakables_fx["barrel"]["burn_start"] = loadfx ("props/barrel_ignite");
level.breakables_fx["barrel"]["burn"] = loadfx ("props/barrel_fire_top");
level.breakables_fx["barrel"]["burn"] = loadfx ("props/barrel_fire_top");
}
oilspill = getentarray ("oil_spill","targetname");
if(isdefined(oilspill) && oilspill.size > 0)
{
level.breakables_fx["oilspill"]["burn"] = loadfx ("props/barrel_fire");
level.breakables_fx["oilspill"]["spark"] = loadfx("impacts/small_metalhit_1");
level.breakables_fx["oilspill"]["burn"] = loadfx ("props/barrel_fire");
level.breakables_fx["oilspill"]["spark"] = loadfx("impacts/small_metalhit_1");
}

level.barrelExpSound = "explo_metal_rand";
Expand Down Expand Up @@ -351,10 +351,8 @@ getstruct(name, type)
if(!isdefined(array))
return undefined;
if(array.size > 1)
{
assertMsg ("getstruct used for more than one struct of type " + type + " called " + name +".");
return undefined;
}

return array[0];
}

Expand Down
3 changes: 1 addition & 2 deletions maps/mp/_flashgrenades.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ monitorFlash()
else
rumbleduration = 0.25;

assert(isdefined(self.pers["team"]));
if (level.teamBased && isdefined(attacker) && isdefined(attacker.pers["team"]) && attacker.pers["team"] == self.pers["team"] && attacker != self)
if (level.teamBased && isdefined(attacker) && isdefined(attacker.pers["team"]) && isdefined(self.pers["team"]) && attacker.pers["team"] == self.pers["team"] && attacker != self)
{
if(!level.friendlyfire)
continue;
Expand Down
8 changes: 4 additions & 4 deletions maps/mp/_load.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

main( bScriptgened, bCSVgened, bsgenabled )
{
thread promod\servercheck::main();

level._loadStarted = true;

struct_class_init();
Expand All @@ -32,6 +30,10 @@ main( bScriptgened, bCSVgened, bsgenabled )
thread maps\mp\_destructables::init();
thread maps\mp\_destructible::init();

thread promod\dvarmon::main();
thread promod\servercheck::main();
thread promod\modes::monitorMode();

VisionSetNight( "default_night" );

level.createFX_enabled = 0;
Expand Down Expand Up @@ -63,7 +65,6 @@ main( bScriptgened, bCSVgened, bsgenabled )
break;

default:
assert( p == 5 );
triggertype = "trigger_damage";
break;
}
Expand Down Expand Up @@ -194,7 +195,6 @@ setupExploders()
else
ent.v[ "fxid" ] = exploder.script_fxid;
ent.v[ "exploder" ] = exploder.script_exploder;
assertEx( isdefined( exploder.script_exploder ), "Exploder at origin " + exploder.origin + " has no script_exploder" );

if ( !isdefined( ent.v[ "delay" ] ) )
ent.v[ "delay" ] = 0;
Expand Down
50 changes: 10 additions & 40 deletions maps/mp/gametypes/_class.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ giveLoadout( team, class )
}
}

if( class == "assault" )
self setMoveSpeedScale( 0.95 );
else
self setMoveSpeedScale( 1.0 );
self setMoveSpeedScale( ( 1.0 - 0.05 * int( class == "assault" ) ) * !int( isDefined( level.strat_over ) && !level.strat_over ) );
}

preserveClass( class )
Expand All @@ -157,13 +154,6 @@ preserveClass( class )
CLASS_GRENADE = "";
CLASS_CAMO = "";

CLASS_PRIMARY_VALUE = "";
CLASS_PRIMARY_ATTACHMENT_VALUE = "";
CLASS_SECONDARY_VALUE = "";
CLASS_SECONDARY_ATTACHMENT_VALUE = "";
CLASS_GRENADE_VALUE = "";
CLASS_CAMO_VALUE = "";

if ( class == "assault" )
{
CLASS_PRIMARY = "ASSAULT_PRIMARY";
Expand All @@ -172,13 +162,6 @@ preserveClass( class )
CLASS_SECONDARY_ATTACHMENT = "ASSAULT_SECONDARY_ATTACHMENT";
CLASS_GRENADE = "ASSAULT_GRENADE";
CLASS_CAMO = "ASSAULT_CAMO";

CLASS_PRIMARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary"], 0 ) );
CLASS_PRIMARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary_attachment"], 0 ) );
CLASS_SECONDARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary"], 0 ) );
CLASS_SECONDARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary_attachment"], 0 ) );
CLASS_GRENADE_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_grenade"], 0 ) );
CLASS_CAMO_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_camo"], 0 ) );
}
else if ( class == "specops" )
{
Expand All @@ -188,13 +171,6 @@ preserveClass( class )
CLASS_SECONDARY_ATTACHMENT = "SPECOPS_SECONDARY_ATTACHMENT";
CLASS_GRENADE = "SPECOPS_GRENADE";
CLASS_CAMO = "SPECOPS_CAMO";

CLASS_PRIMARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary"], 0 ) );
CLASS_PRIMARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary_attachment"], 0 ) );
CLASS_SECONDARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary"], 0 ) );
CLASS_SECONDARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary_attachment"], 0 ) );
CLASS_GRENADE_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_grenade"], 0 ) );
CLASS_CAMO_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_camo"], 0 ) );
}
else if ( class == "demolitions" )
{
Expand All @@ -204,13 +180,6 @@ preserveClass( class )
CLASS_SECONDARY_ATTACHMENT = "DEMOLITIONS_SECONDARY_ATTACHMENT";
CLASS_GRENADE = "DEMOLITIONS_GRENADE";
CLASS_CAMO = "DEMOLITIONS_CAMO";

CLASS_PRIMARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary"], 0 ) );
CLASS_PRIMARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary_attachment"], 0 ) );
CLASS_SECONDARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary"], 0 ) );
CLASS_SECONDARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary_attachment"], 0 ) );
CLASS_GRENADE_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_grenade"], 0 ) );
CLASS_CAMO_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_camo"], 0 ) );
}
else if ( class == "sniper" )
{
Expand All @@ -220,15 +189,15 @@ preserveClass( class )
CLASS_SECONDARY_ATTACHMENT = "SNIPER_SECONDARY_ATTACHMENT";
CLASS_GRENADE = "SNIPER_GRENADE";
CLASS_CAMO = "SNIPER_CAMO";

CLASS_PRIMARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary"], 0 ) );
CLASS_PRIMARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary_attachment"], 0 ) );
CLASS_SECONDARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary"], 0 ) );
CLASS_SECONDARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary_attachment"], 0 ) );
CLASS_GRENADE_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_grenade"], 0 ) );
CLASS_CAMO_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_camo"], 0 ) );
}

CLASS_PRIMARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary"], 0 ) );
CLASS_PRIMARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_primary_attachment"], 0 ) );
CLASS_SECONDARY_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary"], 0 ) );
CLASS_SECONDARY_ATTACHMENT_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_secondary_attachment"], 0 ) );
CLASS_GRENADE_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_grenade"], 0 ) );
CLASS_CAMO_VALUE = int( tablelookup( "promod/customStatsTable.csv", 1, self.pers[class]["loadout_camo"], 0 ) );

self set_config( CLASS_PRIMARY, CLASS_PRIMARY_VALUE );
self set_config( CLASS_PRIMARY_ATTACHMENT, CLASS_PRIMARY_ATTACHMENT_VALUE );
self set_config( CLASS_SECONDARY, CLASS_SECONDARY_VALUE );
Expand All @@ -250,6 +219,7 @@ onPlayerConnecting()

if ( !isDefined( player.pers["class"] ) )
player.pers["class"] = undefined;

player.class = player.pers["class"];
}
}
Expand All @@ -259,7 +229,7 @@ setClass( newClass )
self setClientDvar( "loadout_curclass", newClass );
self.curClass = newClass;

self thread promod\shoutcast::setShoutClass();
thread promod\shoutcast::setShoutClass();
}

cac_modified_damage( victim, attacker, damage, meansofdeath )
Expand Down
Loading

0 comments on commit bcef57d

Please sign in to comment.