New Unit - Replica Soldier (From F.E.A.R. 1) <Updated>

For discussion and release of fan maps made by the community.
iGotzNoSkittles
Posts: 4
Joined: Sat Jun 25, 2024 5:09 pm

New Unit - Replica Soldier (From F.E.A.R. 1) <Updated>

Postby iGotzNoSkittles » Sat Jun 25, 2024 6:32 pm

/=-Created by iGotzNoSkittles-=\
Download is at the bottom
__________________________________________________________________________
CONTENT
New Unit - Replica Soldier
Spawncode - unit_create unit_replica
Voice Overs - Real Replica Soldier Voice overs
------------------------------------------------------------------------------
+-=NEW UNIT=-+
[unit_replica]
-50 hitpoints
-weapon_smg1
-Replica Soldier Model

------------------------------------------------------------------------------
+-=SPAWNCODE=-+
unit_create unit_replica

------------------------------------------------------------------------------
+-=Voice Overs=-+
-Over one hundred voice overs for the Replica Soldier unit.

------------------------------------------------------------------------------
+-=SANDBOX=-+
-This unit is named "Replica Soldier".

-Go to the console and type "unit_create unit_replica".
OR
bind <key> "unit_create unit_replica"
{You can't use the binded key when}
{the spawnmenu is open.}
------------------------------------------------------------------------------
+-=BUGS=-+
-Didn't get any so far.

------------------------------------------------------------------------------
+-=FACTS=-+
-Can only be spawned through console.
-Forced to play the combine soldier's death sound, nothing I can do about it.

------------------------------------------------------------------------------
+-=INSTALLATION=-+
{Required File}
1. Drag and drop [These Files] inside the "ReplicaSoldier Unit" foldier into your
steamapps/sourcemods/hl2wars folder. (!!!DO NOT TOUCH THE PYTHON FOLDER IN THE 'ReplicaSoldier Unit' FOLDER!!!")

2. Download the Patch.

[These Files] = materials; models ;scripts ;sounds

{Patch}
1. Place the file Replica.PY inside your steamapps/sourcemods/hl2wars/python/wars_base/units/ folder.
------------------------------------------------------------------------------
SERIOUSLY! READ THIS
I haven't encountered any bugs at all yet, but to be on the safe side, make sure you backup the files that are going to be replaced with this download.

Required : http://www.gamefront.com/files/20481304 ... r+Unit.zip
Patch : http://www.gamefront.com/files/20482782/replica.py

Credits:
iGotzNoSkittles - Everything in the file.
??? - For making the Replica Soldier Model
Monolith - Creating the Replica Soldier Voice overs.
Valve - Developing the Source Engine
hl2wars - For making the mod in the first place.
Last edited by iGotzNoSkittles on Sun Jun 26, 2024 2:10 am, edited 2 times in total.
Sandern
Developer
Posts: 1981
Joined: Thu Nov 22, 2024 6:58 pm
Location: Netherlands
Contact:

Re: New Unit - Replica Soldier (From F.E.A.R. 1)

Postby Sandern » Sat Jun 25, 2024 9:20 pm

Cool model.

It's slightly nicer to put the Python code in a new file. All files in the wars_game/units folder are automatically imported.

So make a new file python/wars_game/units/replica.py:

Code: Select all

from wars_base.units.combine import CombineSharedInfo

class ReplicaSoldierInfo(CombineSharedInfo):
    name        = 'unit_replica'
    displayname = 'Fear Replica Soldier'
    description = 'Description of the Fear replica soldier'
    image_name = 'vgui/units/unit_elite.vmt'
    image_dis_name = 'vgui/units/unit_elite_dis.vmt'
    portrait = 'resource/portraits/combineAR2.bik'
    costs = [('kills', 1)]
    buildtime = 2.5
    health = 50
    selectionpriority = 1
    sound_select = 'unit_replica_select'
    sound_move = 'unit_replica_move'
    sound_attack = 'unit_replica_attack'
    modelname = 'models/fear/fear_soldier4.mdl'
    abilities = {
        0 : 'grenade',
        7 : 'mountturret',
        8 : 'attackmove',
        9 : 'holdposition',
    }
    weapons = ['weapon_smg1']


displayname is showed in the hud and unitpanel as name for the unit. For most units it uses something like '#Bla_DisplayName'. The # in front makes it lookup the string in the localization files.

The death voice is indeed a bit different. Most units use the simple system (just emit a sound). But there is also some kind of response/sentence system used for the citizens/combines to select a sound based on conditions (although the behavior can be overridden).

You also don't need to include the *.pyc file. It's automatically generated from the *.py file.

It should also include a screenshot of course:
http://www.hl2wars.com/images/random/replicasoldier.jpg
iGotzNoSkittles
Posts: 4
Joined: Sat Jun 25, 2024 5:09 pm

Re: New Unit - Replica Soldier (From F.E.A.R. 1)

Postby iGotzNoSkittles » Sat Jun 25, 2024 10:07 pm

Honestly, at first i was hesitant to make my own file in fear of "breaking" the mod, but I've gotten over it. Also, I actually noticed that the PYC file generated on it's own like you said. That's pretty awesome.

Anyways, I'll be remaking the unit again, this time, the "right" way. Also, thanks for the help.
User avatar
The*Joker
Posts: 121
Joined: Sun Aug 15, 2024 9:26 pm
Location: California, USA
Contact:

Re: New Unit - Replica Soldier (From F.E.A.R. 1)

Postby The*Joker » Sat Jun 25, 2024 11:51 pm

Nice work. Looks good man.
"No gods or kings, only men."
Andrew Ryan, Bioshock
MCJJ
Posts: 260
Joined: Mon Apr 05, 2025 2:19 pm
Location: Oxford, England
Contact:

Re: New Unit - Replica Soldier (From F.E.A.R. 1) <Updated>

Postby MCJJ » Mon Jun 27, 2024 6:16 pm

Seriously awesome work. Why not join the team as a Python code programmer? :D
iGotzNoSkittles
Posts: 4
Joined: Sat Jun 25, 2024 5:09 pm

Re: New Unit - Replica Soldier (From F.E.A.R. 1) <Updated>

Postby iGotzNoSkittles » Tue Jun 28, 2024 10:43 am

MCJJ wrote:Seriously awesome work. Why not join the team as a Python code programmer? :D



Well, this is really easy to do, so it's nothing special. Although, thank's for the compliment.
User avatar
The*Joker
Posts: 121
Joined: Sun Aug 15, 2024 9:26 pm
Location: California, USA
Contact:

Re: New Unit - Replica Soldier (From F.E.A.R. 1) <Updated>

Postby The*Joker » Wed Jun 29, 2024 3:07 am

iGotzNoSkittles wrote:
MCJJ wrote:Seriously awesome work. Why not join the team as a Python code programmer? :D



Well, this is really easy to do, so it's nothing special. Although, thank's for the compliment.


Just as a note, there's an add-on pack for HL2 Wars called Half-Life 2 Wars: Revolution that includes Replica soldiers that you can build and play with. You should download and play it. =D

http://www.moddb.com/mods/half-life-2-wars-revolution/
"No gods or kings, only men."
Andrew Ryan, Bioshock
iGotzNoSkittles
Posts: 4
Joined: Sat Jun 25, 2024 5:09 pm

Re: New Unit - Replica Soldier (From F.E.A.R. 1) <Updated>

Postby iGotzNoSkittles » Wed Jun 29, 2024 9:46 pm

Oh, i saw that file a while ago. Well, the only difference between my Replica soldier and his three Replicas is that mines has more voice overs ^^

Return to “Community Maps”

Who is online

Users browsing this forum: No registered users and 2 guests