PCS Game Hosting
 
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Private MessagesLogin, Check Messages    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search



Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » SOF2 Tutorials » Tutorial.10 - Scripts
 View previous topic :: View next topic  
Author Message
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Apr 02, 2020
Age: 22
Posts: 740

Netherlands.png 
Reputation: 4027
votes: 3
Medals: 2 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Mon Aug 12, 2013 1:24 pm
PostPost subject: sof2 Tutorial.10 - Scripts
Reply with quote

SOF2MODDING Tutorial.10 - Scripts

Welcome to the SOF2MODDING Tutorial Series. I'm gonna explain how to make a MOD for Soldier Of Fortune Double Helix II. The tutorials are for beginners and advanced modders. Some parts are hard to understand, so if you have any Questions you can Comment or send me a PM with the Question you have.
Alright Let's Start.

We just did the Sound & Music tutorial, Sorry if that was a bit bad same for the coming up Tutorials.
But it's getting harder to explain everything.

But today we can have a great Tutorial Again about the script folder.
If you open it you can see lots of folders with map names.

You can delete all these folders because we cant edit them.

Now you will have a group of files types ' gametype, outfitting, arena and voice.

We will start with outfitting filetypes.

outfitting

Let's open commando.outfitting.
Hidden: 

outfitting
{
displayName "COMMANDO"

weapons
[
"M1911A1"
"M60"
"M3A1"
"M15"
]

items
[
"Thermal Goggles"
]
}


If you open ingame your weapons you can see somwhere up a balc where you can see types like Grunt, Commando, Sniper etc...
These files are it.

displayName - This is the Name of the outfitting.
weapons - Weapons that are included.
So Commando has the following weapons:
M1911A1 - Pistol
M60 - Primairy Gun
M3A1 - Secundairy gun
M15 - Granade

items - The items you are carying.
Thermal Goggles" - Thermal Goggles, displays heat on your screen, players will glow up in yellow or red, the rest will be blue or black.

So if we want to make our own let's copy a outfitting file toward your desktop and open it.
Rename the file to whatever you want, i will call it ' ND ' because it is a good outfit if your playing in ND ( with all normal weapons ).
Now change displayName to how you renamed the file already.

Now choose the weapons you like.
First you need to choose your pistol.
Pistols are:
- US SOCOM
- M1911A1
For gold:
- Silver Talon

Than we need to choose our primairy weapon.
- AK74 ( includes bayonet. )
- M4 ( includes M203 Granade Launcher )
- MSG90A1 ( Sniper )
- M60 ( Machine gun )

For gold:
-Sig 551 ( Sniper )
-USAS-12  ( shotgun )
- MP5

Than our Secundairy Gun.
- M590 ( shotgun )
- M3A1
- Micro Uzi

Than your Granade.
- ANM14 ( Fire )
- M15 ( Smoke )
- smohg92 ( explosion )
- m84 ( Flash )

Now we need to select 1 item.

- Armor ( mostly Full Health ).
- Thermal Goggle ( Heat Seeker )
- NV. Goggles ( Night Goggle )

Than save it and copy/paste it again in your script folder.

Arena

The arena File gives you information about the map.
Let's open one; i open mp_shop.arena
Hidden: 

{
map "mp_shop"
longname "The Shop Under Siege"
type "dm tdm elim inf"
}


map - the name of the file ( mp_shop.bsp  but without .bsp ).
longname - The full name of the map.
type - on which Gametypes can the map be played.

This is usefull if you are making maps.
In silver people are using this also for edits ( if i'm correct ).

Voice

As last we have the Voice Type.
Let's open the male1.voice.
Hidden: 

male

careful
{
sound/radio/male/careful.wav "Be careful!"
}

clear
{
sound/radio/male/clear.wav "Clear!"
}

cover_me
{
sound/radio/male/cover_me.wav "Cover me!"
}

got_him
{
sound/radio/male/got_him.wav "Got him!"
}

got_it
{
sound/radio/male/got_it.wav "Got it!"
}

hold_position
{
sound/radio/male/hold_position.wav "Hold position!"
}

man_down
{
sound/radio/male/man_down01.wav "Man down!"
}

need_backup
{
sound/radio/male/need_backup.wav "I need backup, NOW!"
}

obj_complete
{
sound/radio/male/obj_complete.wav "Objective Complete!"
}

take_cover
{
sound/radio/male/take_cover.wav "Take cover!"
}

under_fire
{
sound/radio/male/underfire01.wav "Under Fire!"
}

sniper
{
sound/npc/col8/blakely/sniper.mp3 "Sniper!"
}

check_fire
{
sound/npc/col8/blakely/checkfire.mp3 "Check your fire!"
}

fire_hole
{
sound/npc/col8/blakely/firehole.mp3 "Fire in the Hole!"
}

grenade
{
sound/npc/col8/blakely/grenade.mp3 "Grenade!"
}

affirmative
{
sound/radio/male/affirm.wav "Affirmative!"
}

negative
{
sound/radio/male/neg.wav "Negative!"
}


You see everytime the same.
Hidden: 

careful
{
sound/radio/male/careful.wav "Be careful!"
}


Firsy ou see ' Careful ' This is the name.
than see the path to the sound; in this case it's sound/radio/male/careful.wav.
Than we get the text that is saying ingame.
In this case Be careful!.

You can edit this yourself.

Gametype

If you open the Gametype files, everytimes you see changes in it.
But the basics are :

Hidden: 

//
// GAMETYPE: Elimination
//
//  DESCRIPTION: The red team and blue team are spawned the the first team to
// loose all members will loose.  This gametype requires no
// items or triggers to be specified.
//

gametype
{
displayname "Elimination"
respawn "none"
pickups "no"
teams "yes"
description "The last team left alive wins!"
}


Discplayname - Name that will be shown in Loading Screen and as Gametype.
respawn - If you respawn or not.
pickups - if you can pickup items, ammo etc...
teams - If there are teams, mostly it's yes but in dm its no.
description - Description which will be displayed by objective.

Hidden: 

in ctf you get this:

items
{
blue_flag
{
displayname "Blue Flag"

icon "gfx/menus/hud/flag_blue_small"
model "models/flags/flag_blue.md3"
boltmodel "models/flags/flag_blue_bolt_on.glm"
}

red_flag
{
displayname "Red Flag"

icon "gfx/menus/hud/flag_red_small"
model "models/flags/flag_red.md3"
boltmodel "models/flags/flag_red_bolt_on.glm"
}
}
}



icon - what you can see down on the left of you screen.
Model - The Flag models.
boltmodel - Where flag stays on.

Hidden: 


if you open inf you will see this with it:

photos
{
briefcase
{
displayname "Documents"
}

extraction
{
displayname "Extraction Point"
}
}

items
{
briefcase
{
displayname "Briefcase"
team "blue"
enabled 0

icon "gfx/menus/hud/briefcase_small"
model "models/pick_ups/briefcase_silver.md3"
boltmodel "models/characters/bolt_ons/briefcase_back.glm"
}
}
}

Not gonna explain it anymore.


Now we ended the Script folder.

Good Luck,
Punisher

Video Tutorial Coming Soon!


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Sponsor
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index »  SOF2 Tutorials
 
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts How to make you own mod? 6 Crankedup 5198 Tue Jun 19, 2018 11:00 pm
Punisher View latest post
No new posts SOF2MAPPING Tutorial.2 - Make a room 0 Punisher 2375 Tue Oct 06, 2015 3:16 pm
Punisher View latest post
No new posts To make it more clear to everyone READ PLZ 3 Teo 4581 Thu Nov 28, 2013 8:41 pm
Teo View latest post
No new posts want to make a post :) 6 conviction 5510 Thu Nov 15, 2012 10:08 pm
Lessoe View latest post
No new posts Teo which programs u use for make themes? 1 MacTavishXx 4193 Wed May 02, 2012 5:23 pm
Teo View latest post
 




Back to Top

SOF2.ORG Multiplayer Community © 2020 All times are UTC + 2 Hours [DST enabled]
 

Copyright ©