Call of Duty 4: Modern Warfare

Informations

Creator Message
NSLW

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 114137
Wine: 3.0.3

Feedbacks

Description

FPS, 2007. Wikipedia.

2010 comments :

- use latest 1.7 game patch.
- disable "depth of field" and "soften smoke edges" in game as they don't work.
- don't install DirectX 9.0c if prompted.
- game doesn't work with original iw3sp.exe (NoCD required).

Source code

Contributions

Filters:

Contribute
Member Message
Dadu042 Wednesday 29 January 2020 at 11:05
Dadu042

Information

This update has been approved by the team.

Differences

New source code

Replies

vidocq Tuesday 22 December 2015 at 20:43
vidocq Anonymous

Message

COD4MW runs perfectly with Wine 1.7.55 under Debian 8

Replies

petch Wednesday 27 May 2015 at 7:08
petch

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Remove full path from shortcut creations

Differences

New source code

Replies

Friday 3 January 2020 at 0:27
Script approved.
petch Sunday 24 May 2015 at 18:14
petch

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Attempt at updating the script, untested

Differences

New source code

Replies

Anonymous
Tuesday 26 May 2015 at 23:35
The code don't work, it has a few errors in it, and then it works. Put a 0 after exit.
Anonymous
Tuesday 26 May 2015 at 23:39
And "TRUE" ]; then not "t4
Anonymous
Tuesday 26 May 2015 at 23:39
Not "TRUE" ;then
Anonymous
Tuesday 26 May 2015 at 23:40
Then it installs just fine, may have to configure to install your shortcut from pol
Anonymous
Tuesday 26 May 2015 at 23:54
Inside of pol click configure, and click make link, because it did not make a link for me, thank you
Anonymous
Wednesday 27 May 2015 at 0:03
sorry there is two exits with typos. Just add 0 to both. exit 0
Anonymous
Wednesday 27 May 2015 at 2:38

#!/bin/bash
# Date : (2009-05-23 12-14)
# Last revision : (2015-05-24 18-13)
# Wine version used : 1.6.2
# Author : NSLW
# updated: petch
# Licence : Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Call of Duty 4: Modern Warfare"
PREFIX="COD4"

#procedure for patching cod4
patch_cod4()
{
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Select patch file downloaded from www.infinityward.com')" "$TITLE" ""
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$APP_ANSWER"
POL_SetupWindow_message "$(eval_gettext 'Patch for $TITLE has been installed successfully')" "$TITLE"
}

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "infinityward" "www.infinityward.com" "NSLW" "$PREFIX"

if [ -e "$POL_USER_ROOT/configurations/installed/$TITLE" ]; then
POL_SetupWindow_menu "$(eval_gettext 'What do you want to do?')" "$(eval_gettext 'Actions')" "$(eval_gettext 'Patch game')" "~"

if [ "$APP_ANSWER" == "$(eval_gettext 'Patch game')" ]; then
patch_cod4
fi

POL_SetupWindow_Close
exit 0
fi

POL_SetupWindow_message "$(eval_gettext 'Please insert $TITLE media into your disk drive.')"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

LATESTVERSION="1.6.2"
CHOSENWINEVERSION="$LATESTVERSION"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$CHOSENWINEVERSION"

#starting installation
POL_Wine_WaitBefore "$TITLE"
cd "$CDROM"
POL_Wine "setup.exe"
POL_Wine_WaitExit "$TITLE"

POL_Wine_Direct3D "Multisampling" "enabled"
POL_SetupWindow_VMS

cd "$WINEPREFIX/drive_c/windows/temp/"
convert "$CDROM/Setup/rsrc/cod4.ico" -geometry 32X32 "cod4.png"
cp "cod4-1.png" "$POL_USER_ROOT/icones/32/$TITLE Singleplayer"
cp "cod4-1.png" "$POL_USER_ROOT/icones/32/$TITLE Multiplayer"

#making shortcut
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty 4 - Modern Warfare/iw3sp.exe" "$TITLE Singleplayer"
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty 4 - Modern Warfare/iw3mp.exe" "$TITLE Multiplayer"

#asking about patching
POL_SetupWindow_question "$(eval_gettext 'Do you want to patch your game?')" "$TITLE"
if [ "$APP_ANSWER" == "TRUE" ]; then
patch_cod4
fi

POL_SetupWindow_message "$(eval_gettext 'Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff.')" "Note about copy protection"

POL_SetupWindow_Close
exit 0

Edited by petch

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com