Skip to content

Commit d22de10

Browse files
IngramzTrivve
authored andcommitted
Promod LIVE V2.20 release
1 parent be0b3ca commit d22de10

File tree

11 files changed

+38
-27
lines changed

11 files changed

+38
-27
lines changed

compile.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@echo off
1010

11-
SET mod_name=pml219
11+
SET mod_name=pml220
1212
SET work_directory=%~dp0
1313
cd %work_directory%
1414

compile_fastfile.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ copy mod.csv ..\..\zone_source /Y
2626
cd ..\..\bin
2727
linker_pc.exe -language english -compress -cleanup mod -verbose
2828

29-
cd ..\mods\pml219
29+
cd ..\mods\pml220
3030
copy ..\..\zone\english\mod.ff
3131

3232
pause

maps/mp/_destructible.gsc

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ dmg()
6565
{
6666
numparts = getnumparts(mdl);
6767
closest = undefined;
68+
distance = distance(point, self.origin);
6869
for(i=0;i<numparts;i++)
6970
{
7071
part = getpartname(mdl, i);
@@ -74,14 +75,21 @@ dmg()
7475

7576
if(!isdefined(closest) || dist < closest)
7677
closest = dist;
78+
79+
if((isSubStr(part, "tag_hood") || isSubStr(part, "tag_trunk") || isSubStr(part, "tag_door_") || isSubStr(part, "tag_bumper_")) && dist < distance)
80+
distance = dist;
7781
}
7882
if(!isdefined(closest))
79-
closest = distance(point, self.origin);
83+
closest = distance;
84+
85+
damage = int(11 * damage - 5.6 * distance + 4 * closest);
86+
}
8087

81-
damage = 11 * damage - 5.6 * distance(point, self.origin) + 4 * closest;
88+
if(damage > 0)
89+
{
90+
self.damageOwner = attacker;
91+
self.damageTaken += damage;
8292
}
83-
self.damageOwner = attacker;
84-
self.damageTaken += int(damage);
8593
}
8694
}
8795

@@ -184,7 +192,7 @@ explosion()
184192

185193
self playsound("car_explode");
186194
playfxontag(level.destructible_effects["small_vehicle_explosion"], self, "tag_death_fx");
187-
origin = self gettagorigin("tag_death_fx")+(0, 0, 80);
195+
origin = self.origin+(0, 0, 80);
188196
rng = 250;
189197
if(getsubstr(self.destructible_type, 0, 19) == "vehicle_80s_sedan1_")
190198
rng = 375;

pb/promod_iwd_md5.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pb_sv_md5tool a "" v pml218.iwd SZ276308 AT0 LEN2048 DA521500161DE4CA327F648779011C0A
1+
pb_sv_md5tool a "" v pml220.iwd SZ276308 AT0 LEN2048 21D42AD2AA596B92C6AFB0B25C1BC9AB

promod/scorebot.gsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ actionTicker()
4949
setDvar( "__promod_defence_score", game["promod_scorebot_defence_ticker_buffer"], true );
5050
setDvar( "__promod_mode", toLower( getDvar( "promod_mode" ) ), true );
5151
setDvar( "__promod_ticker", getDvar( "__promod_ticker" ), true );
52-
setDvar( "__promod_version", "Promod LIVE V2.19 EU", true );
52+
setDvar( "__promod_version", "Promod LIVE V2.20 EU", true );
5353

5454
for(;;)
5555
{

promod/servercheck.gsc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ errorMessage()
7676
if ( (antilag && dedicated == "dedicated LAN server") || (!antilag && dedicated == "dedicated internet server" && !game["PROMOD_PB_OFF"]))
7777
iprintlnbold("^1Server Violation^7: Modified Connection");
7878

79-
if( isDefined( game["PROMOD_MATCH_MODE"] ) && game["PROMOD_MATCH_MODE"] == "match" || toLower( getDvar( "fs_game" ) ) == "mods/pml219" )
79+
if( isDefined( game["PROMOD_MATCH_MODE"] ) && game["PROMOD_MATCH_MODE"] == "match" || toLower( getDvar( "fs_game" ) ) == "mods/pml220" )
8080
{
81-
if( toLower(getDvar("fs_game")) != "mods/pml219" )
81+
if( toLower(getDvar("fs_game")) != "mods/pml220" )
8282
iprintlnbold("^1Server Violation^7: Invalid fs_game value");
8383

8484
iwdnames = strToK( getDvar( "sv_iwdnames" ), " " );
@@ -109,7 +109,7 @@ errorMessage()
109109
iprintlnbold("^1Server Violation^7: Modified Custom IWD File While In Match Mode");
110110
break;
111111

112-
case "pml219":
112+
case "pml220":
113113
if( iwdsums[i] != "1491770436" )
114114
iprintlnbold("^1Server Violation^7: Modified Promod IWD Detected");
115115
iwd_loaded = true;

promod/setvariables.gsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ main()
3232
game["axis_timeout_called"] = 0;
3333

3434
game["promod_first_readyup_done"] = 0;
35-
game["PROMOD_VERSION"] = "Promod ^1LIVE ^7V2.19 EU";
35+
game["PROMOD_VERSION"] = "Promod ^1LIVE ^7V2.20 EU";
3636
}

readme.txt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
Promod LIVE V2.19 EU - README
1+
Promod LIVE V2.20 EU - README
22
http://www.codpromod.com
3-
2014-02-28 <promod [at] codpromod.com>
3+
2014-05-13 <promod [at] codpromod.com>
44
#codpromod @ QuakeNet
55

66
Maintained by Ingram
77

88
Sponsored by FragNet
99
http://www.fragnet.net
1010

11-
Zip-package (promodlive219_eu.zip) contains:
11+
Zip-package (promodlive220_eu.zip) contains:
1212

1313
LICENSE
14-
pml219\mod.ff
15-
pml219\pml219.iwd
16-
pml219\z_c_r.iwd
14+
pml220\mod.ff
15+
pml220\pml220.iwd
16+
pml220\z_c_r.iwd
1717
pb\stock_iwd_md5.cfg
1818
pb\promod_iwd_md5.cfg
1919
pb\pbsvuser.cfg
2020
readme.txt
2121
server_setup.txt
2222
server.cfg
2323

24+
LIVE V2.20:
25+
- Fixed issues with vehicle damage source being different compared to previous releases
26+
2427
LIVE V2.19:
2528
- Fixed a server crash related to damage inflicted via exploding barrels
2629
- Re-implemented vehicle handling. This fixes two known issues:
@@ -149,7 +152,7 @@ Q: What about the hardcore, and support for all gametypes, how do I use them?
149152
A: For a complete list of "promod_modes", see below.
150153

151154
Q: I want to run my own custom Promod-server with skins etc, how?
152-
A: In order to run your own custom Promod-server you'll need to change the fs_game to anything besides "mods/pml219" as well as not using match-modes. You will now be able to modify the Promod IWDs and add additional iwd-files.
155+
A: In order to run your own custom Promod-server you'll need to change the fs_game to anything besides "mods/pml220" as well as not using match-modes. You will now be able to modify the Promod IWDs and add additional iwd-files.
153156

154157
Q: Can I use this mod as a movie mod?
155158
A: Yes, you can! Commands (which are important for movie-making) are only forced on the clients once connected. Demos needs to be loaded using devmap before starting a demo ("devmap mp_crash;disconnect").
@@ -343,8 +346,8 @@ For example map "mp_dahman_b3" contains a file called "mp_dahman_b3.iwd" and the
343346

344347
NOTES FOR SERVER-ADMINS AND SERVER-HOSTING COMPANIES
345348

346-
The dvar fs_game "mods/pml219" is forced for match-servers and do not rename any files or modify contents of them.
347-
However custom servers with skins etc. must use something else than "mods/pml219" for example "mods/pml219_custom", it's not restricted and you are free to add additional iwd files or modify existing ones.
349+
The dvar fs_game "mods/pml220" is forced for match-servers and do not rename any files or modify contents of them.
350+
However custom servers with skins etc. must use something else than "mods/pml220" for example "mods/pml220_custom", it's not restricted and you are free to add additional iwd files or modify existing ones.
348351

349352
Included with Promod are two PunkBuster MD5 configs, "stock_iwd_md5.cfg" and "promod_iwd_md5.cfg" which you can put in the pb-folder on your server, it contains checksums for the stock IWD-files as well as Promod-IWD for use with PunkBuster MD5 facility to prevent custom skins and other forms of cheating and abusing and can be loaded in-game by typing "\rcon pb_sv_load stock_iwd_md5.cfg" and "\rcon pb_sv_load promod_iwd_md5.cfg".
350353

server.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sets _Email ""
77
sets _Website ""
88
sets _Location ""
99
sets _Irc ""
10-
sets sv_hostname "Another Promod ^1LIVE ^7V2.19 ^7Server is Born"
10+
sets sv_hostname "Another Promod ^1LIVE ^7V2.20 ^7Server is Born"
1111

1212
// welcome message, message of the day (motd)
1313
seta scr_motd "Please visit us at www.codpromod.com, also visit our IRC channel #codpromod @ QuakeNet"

server_setup.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This is a sample command-line for starting and using Promod LIVE V2 under Windows:
66

7-
<path to iw3mp.exe> +set dedicated 2 +set net_ip localhost +set net_port 28960 +set sv_punkbuster 1 +set fs_game mods/pml219 +exec server.cfg +set rcon_password password +map_rotate
7+
<path to iw3mp.exe> +set dedicated 2 +set net_ip localhost +set net_port 28960 +set sv_punkbuster 1 +set fs_game mods/pml220 +exec server.cfg +set rcon_password password +map_rotate
88

99
dedicated [0-2] (listen, LAN, internet)
1010
net_ip [xxx.xxx.xxx.xxx]
@@ -13,8 +13,8 @@ net_port [1-65535] (standard is 28960)
1313
Make sure you put the server config (server.cfg) in the main-folder or specify correct path to it.
1414
Please note that we also define the rcon password to the server here to prevent someone from downloading your config from server and thus view ("hack") your rcon password.
1515

16-
The dvar fs_game "mods/pml219" is forced for match-servers and do not rename any files or modify contents of them.
17-
However custom servers with skins etc. must use something else than "mods/pml219" for example "mods/pml219_custom", it's not restricted and you are free to add additional iwd files or modify existing ones.
16+
The dvar fs_game "mods/pml220" is forced for match-servers and do not rename any files or modify contents of them.
17+
However custom servers with skins etc. must use something else than "mods/pml220" for example "mods/pml220_custom", it's not restricted and you are free to add additional iwd files or modify existing ones.
1818

1919
Included with Promod is two PunkBuster MD5 configs, "stock_iwd_md5.cfg" and "promod_iwd_md5.cfg" which you can put in the pb-folder on your server, it contains checksums for the stock IWD-files as well as Promod-IWD for use with PunkBuster MD5 facility to prevent custom skins and other forms of cheating and abusing and can be loaded in-game by typing "\rcon pb_sv_load stock_iwd_md5.cfg" and "\rcon pb_sv_load promod_iwd_md5.cfg".
2020

0 commit comments

Comments
 (0)