Skip to content

Commit

Permalink
add no bursts component
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Dec 13, 2015
1 parent d5c361d commit 87ff5ba
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions fo2tweaks/components/party_no_burst/main.tph
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
OUTER_SPRINT data_dir ~data~
OUTER_SPRINT scripts_dir ~%data_dir%/scripts~
OUTER_SPRINT tmp_dir ~%MOD_FOLDER%/tmp~
OUTER_SPRINT bat_log ~%MOD_FOLDER%/fo2tweaks.bat.log~

//Omotting cck9, ecdogmet, ocgoris, scrobo
ACTION_FOR_EACH ai_script IN
dcvic
epac10
epac11
epac12
gclenny
hcmarcus
kcsulik
mcdavin
mcmiria
nhmyron
vccasidy
wcbrnbot
BEGIN
ACTION_IF FILE_EXISTS ~%scripts_dir%/%ai_script%.int~ BEGIN
AT_NOW ~%MOD_FOLDER%/tools/int2ssl.exe -e %scripts_dir%/%ai_script%.int %ai_script%.ssl.tmp >> %bat_log% 2>&1~
COPY + ~%ai_script%.ssl.tmp~ ~%ai_script%.ssl.tmp~
REPLACE_TEXTUALLY CASE_INSENSITIVE
~procedure start[%LNL%%MNL%]*begin~
~procedure start
begin
set_critter_burst_disable(self_obj,1);~
AT_NOW ~%MOD_FOLDER%/tools/compile.exe -p -d %ai_script%.ssl.tmp -o %tmp_dir%/%ai_script%.int >> %bat_log% 2>&1~
COPY ~%tmp_dir%/%ai_script%.int~ ~%scripts_dir%/%ai_script%.int~
DELETE + ~%ai_script%.ssl.tmp~
DELETE + ~%tmp_dir%/%ai_script%.int~
END
END
5 changes: 5 additions & 0 deletions fo2tweaks/fo2tweaks.tp2
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,8 @@ INCLUDE ~%MOD_FOLDER%/components/inventory_filter/main.tph~
BEGIN ~Unlimited party~ DESIGNATED 9
REQUIRE_PREDICATE NOT FILE_EXISTS ~patch000.dat~ @1
INCLUDE ~%MOD_FOLDER%/components/party_charisma/main.tph~

BEGIN ~Companions never use burst fire~ DESIGNATED 10
REQUIRE_PREDICATE NOT FILE_EXISTS ~patch000.dat~ @1
INCLUDE ~%MOD_FOLDER%/components/sfall/main.tph~
INCLUDE ~%MOD_FOLDER%/components/party_no_burst/main.tph~
5 changes: 5 additions & 0 deletions fo2tweaks/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This mod provides several tweaks for Fallout 2.
- [Armor doesn't reduce run speed](#armor-doesnt-reduce-run-speed)
- [Inventory filter](#inventory-filter)
- [Unlimited party](#unlimited-party)
- [Companions never use burst fire](#companions-never-use burst-fire)
- [Special notes / compatibility](#special-notes--compatibility)
- [Installation](#installation)
- [Unistallation](#uninstallation)
Expand Down Expand Up @@ -69,6 +70,9 @@ The following companions are affected:
- Sulik
- Vic

#### Companions never use burst fire
Give any weapon to your companions, and never be burst in the back. (Well, unless you give them a machine gun which only has burst mode)

### Special notes / compatibility
- **It will ONLY work if you have killap's patch** or restoration pack installed. You can get those at http://www.killap.net.
- It should be **compatible with any other mod** provided that "fo2tweaks" is installed last. It patches files instead of overwriting them.
Expand Down Expand Up @@ -98,5 +102,6 @@ The mod is tested on Windows XP x86. If you have any issues, reach me on [github
* [Sfall](https://github.com/phobos2077/sfall)

### Changelog
* Version 2: Added "no burst" component.
* Version 1: initial release.

Expand Down

0 comments on commit 87ff5ba

Please sign in to comment.