Return to Castle Wolfenstein mod for MOHAA

Started by Soares93, November 16, 2014, 07:00:01 AM

Previous topic - Next topic

Soares93

Improved RTCW Blackguard player skin, half of the Blackguard skins from RTCW SP are already done and once that is over the skin pack will be finished.

http://www.mohaaaa.co.uk/AAAAMOHAA/sites/default/files/AAAA/rtcw_bg_skin.png

Soares93

#31
Hey guys I need a bit of help, i need the music to stop playing when the player dies in single player so that the 'mission failled' sound can play without any other music being played on the background.

Goober {sfx}

What map is it? Can we look at the script for it?

Soares93

#33
Well, first i tried to add the command line 'local.player stufftext "tmstop" ' on several lines of the 'KILLED' sections of the mike_torso.st.
Then I tried to add it to the missioncomplete.scr looking like this:

main local.nextlevel local.bsp:
if ($player.health <= 0)
        $player stufftext "tmstop"
pause

$player stopwatch 0
if (local.nextlevel != NIL)
$player stufftext "tmstop"
$player stufftext "tmstart newsound/music/mission_complete.wav"
wait 3
{
if (local.bsp != NIL)
{
game.loadout = false
bsptransition local.nextlevel
}
else
{
game.loadout = NIL
leveltransition local.nextlevel
}
}

end


But it did not work either.
where can i do this?

Goober {sfx}

I did a little researching and this is what I found. I would want to say that you would have to add the name of the music file to the command line.

$player stufftext "tmstop/music/filename"



https://map.moh-central.net/forum/viewtopic.php?f=3&t=6513&p=45019&hilit=music+stop+playing#p45019

Soares93

If that is true then there is nothing to be done since in every map a different music is played and to make them stop i would need a global command. But still, isn't there somekind of command that can be added to the single player map's .scr files like:

if [player.dead==1]
    $player stufftext "tmstop"/"tmstop newsound/music/wolfenstein.wav"

or something like that (i know almost 0 about scripting....)

PacRac {sfx}

#36
Hi Soares.

Yes there is. The new Reborn Events. You would need to register the event with command "registerev "kill". this method u can designate which player you want to stop the music. But if it is for single player then you just need to add a loop to act when the player is dead like this way:

You should call this thread "player_killed"  from DMprecache.scr on the bottom of the file with this line:

"exec global/player_killed.scr"

then make a file inside global folder called "player_killed.scr"

Inside that file copy all this below...


player_killed:
While (1)
{
wait 1
if !(isalive local.player)
{
local.player stufftext "tmstop newsound/music/wolfenstein.wav"
}
waitframe
}
end


Yet this method wont work properly if you want to use it multiplay because then u need to specify wich players must stop to hear the music then to do this u need to work with mike_torso or with reborn "Kill" event.

inside mike_torso u would need to execute a file to take effect like this example:

//==============================================================================
//
// Death
//
//==============================================================================

state KILLED
{
   movetype anim

   entrycommands
   {
                exec global/player_dead.scr
      nextpaintime -1 // allow all pain calls to work properly for death anim selection
   }

   states
   {
      EXPLOSION_KILLED   : PAIN_TYPE "explosion"
      EXPLOSION_KILLED   : PAIN_TYPE "grenade"
      EXPLOSION_KILLED   : PAIN_TYPE "rocket"
      KILLED_GENERIC      : default
   }
}


then create a file called player_dead.scr

inside of it just fill it with this:

player_dead local.player:
local.player = self
if !(isalive self)
{
self stufftext "tmstop newsound/music/wolfenstein.wav"
}
end


You need to do some tests also those are examples that might not work at first you need to adapt to your needs.

Hope i could help.

Any question, feel free to ask ;)

Cheers...

Soares93

I did copied and did what you said pac......but it still didn't work, when i kill myself in single player the music still plays :(

Soares93

Nevermind, my mistake, it works perfectly now :)

PacRac {sfx}


Soares93


Alex

this mod looks like it is coming along nicely

Soares93

#42
Hey guys, do you know any modelers availlable?
I need someone to add a supressor and scope to the m1 garand to pose as the 'Snooper' rifle;
to add a supressor to the Luger pistol so that you can have the supressed version on stealth missions;
To rip the silenced sten smg from RTCW or the sten from Spearhead and later add supressor to replace the High Standard Silenced.

All of the above except the sten do not need new animations, the only thing i need is the .skd files.
I can send the models I'm currently using so that he can add the upgrades.

Soares93

#43
Hey guys, I'm afraid that the mod will not be completed now that I got a job and will not have much time to finish it. Probably after including the 'disguise' mod and the medic/radioman classes (riped from MOH Hell in the Pacific mod) in the maps scr and add the final voice sounds I will post it on mohaaaa.co.uk for you guys to try it out and if you wish to later improove it.

Progress so far is:
SINGLE PLAYER
-RTCW weapons skin pack;
-RTCW silenced weapons pack added in single player, making the stealth part of mohaa just as intense like in the stealth missions in RTCW (and allows you to move around the map without being noticed by the majority of the nasty npcs ;) ).
-completely new inventory of weapons that makes the gameplay a bit more different;
-RTCW background music playing in almost every map of the campaign;
-the original npc skins of mohaa were replaced with the skins of RTCW's npcs (ex: Blackguards, venom soldiers,...) and have the single player voices from RTCW.
-Health packs have low healt to make the gameplay harder and more intense (I DARE YOU to play mohaa in hard mode with these health packs  8) ).
-Unfortunately no awsome single player campaign where Lt. Powel escapes from Castle Wolfenstein, or fights zombies in the catacumbs, or figths DeathsHead in the X-labs.

MULTIPLAYER
-RTCW's original multiplayer voices replace mohaa's multiplayer voices although some of them do not match with the written instant message;
-An almost complete skin pack from RTCW's both single player and multiplayer modes;
-New global localization messages;
-Hud hasn't many new features, just the crossair and the compass riped from RTCW.

OTHER FEATURES
-RTCW blood mod;
-RTCW sound effects that replace MOHAA's original sound effects example bullet hit objects and bodies; footsteps, weapons change, ammo pick up and 'press button' sounds.
-RTCW muzzle flash mod.

Hope you will like it :)

PacRac {sfx}

Ok Soares we can't wait to check it ;) Sad you have less time to mod now but happy you  have got a job ;) .

We will look for it and all unfinished jobs won't be forgoten.

See you around m8.