Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 38 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Interacting with Objects
Versions: You must be logged in to view history.
Bodger2 explains _interactable_objects
This tutorial covers _interactable_objects.gsc.It also assumes you have extracted the xmodels folder from iw_13.iwd to your Main directory/folder.

What are interactable objects? They are things like the exploding barrels, wine bottles, vases, crates, plates ,helmets ,and tincans.

So on with the tutorial.

Object: Exploding Barrels

Method 1: Load the prefab

Rightclick in the 2D view and select misc>prefab.
The open dialogue box opens,then select

prefabs/interactable_objects/benzin.map

Prefabs choices are,
benzin.map
benzin_snow.map
prop_barrel_benzin.map
prop_barrel_benzin_snow.map

Method 2:Create a script_model

Rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the xmodel.

Script model choices are,
xmodel/prop_barrel_benzin
xmodel/prop_barrel_benzin_snow

Next give the script_model a targetname or a script_noteworthy of explodable_barrel.

You can also set the radius for the damage.
Key:radius Value:350 (if this key is not set the default is 250)

Object: Tin Can

Theres no prefab for this one.

So rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the xmodel/prop_tincan.
Give the script_model a targetname of tincan.

Object: Helmet

Theres no prefab for this one.

But there are two types,of interactions.One is the helmet pop,which when shot makes the helmet jump.The other is shutter,which when shot makes the helmet wobble.

Method: Helmet Pop
Rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the
xmodel/prop_helmet_german_normandy.
Give the script_model a targetname of helmet_pop.

Method: Shuttering
Rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the
xmodel/prop_helmet_german_normandy.
Give the script_model a targetname of shuddering_entity.

Object: Breakable Boxs

Method 1: Load the prefab

Rightclick in the 2D view and select misc>prefab.
The open dialogue box opens,then select
prefabs/interactable_objects/prop_crate_dak1.map

Prefabs choices are,
prop_crate_dak1.map
prop_crate_dak2.map
prop_crate_dak3.map
prop_crate_dak4.map
prop_crate_dak5.map
prop_crate_dak6.map
prop_crate_dak7.map
prop_crate_dak8.map
prop_crate_dak9.map

Method 2: Create a script_model

Rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the xmodel.

Script model choices are,
xmodel/prop_crate_dak1
xmodel/prop_crate_dak2
xmodel/prop_crate_dak3
xmodel/prop_crate_dak4
xmodel/prop_crate_dak5
xmodel/prop_crate_dak6
xmodel/prop_crate_dak7
xmodel/prop_crate_dak8
xmodel/prop_crate_dak9

Next give the script_model a targetname or a script_noteworthy of breakable box.

Object: Wine Bottle

Theres no prefab for this one.

So rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the
xmodel/prop_winebottle_breakable.
Give the script_model a targetname of breakable.

Object: Vase

Method 1: Load the prefab

Rightclick in the 2D view and select misc>prefab.
The open dialogue box opens,then select
prefabs/interactable_objects/egypt_prop_vase1.map
This is the only prefab,the other xmodels can be done with script models.

Method 2: Create a script_model

Rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the xmodel.

Script model choices are,
xmodel/egypt_prop_vase1
xmodel/egypt_prop_vase3
xmodel/egypt_prop_vase4
These are given a type of orange vase

xmodel/egypt_prop_vase2
xmodel/egypt_prop_vase5
xmodel/egypt_prop_vase6
These are given a type of green vase

The type is done by _interactable_objects.gsc and just loads different effects for the xmodels.You don't give the script_models a type the script does that for you.

You just give the script_model a targetname of breakable_vase.

Object: Plates

Theres no prefabs for these ones.

Method: Create a script_model

Rightclick in the 2D view and select script>model.
The open dialogue box opens,then select the xmodel.

Script model choices are,
xmodel/prop_diningplate_roundfloral
xmodel/prop_diningplate_roundplain
xmodel/prop_diningplate_roundstack

xmodel/prop_diningplate_ovalfloral
xmodel/prop_diningplate_ovalplain
xmodel/prop_diningplate_ovalstack

Give the script_model a targetname of breakable.

Thats it for the mapping part.
Now the scripting part.

To get the interactable objects to work you need a GSC file for your SP map.The GSC goes in the maps directory/folder with your d3dbsp file.The GSC has the same name as your map, mymapname.d3dbsp and mymapname.gsc.

So what does the script look like,well maps\_load::main(); automaticly loads _interactable_objects::main(); for you.So as long as you have that line, maps\_load::main(); ,in your GSC it will work.

Example:
main()
{
maps\_load::main();
}

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»