The teory of custom stock maps without downloads
Moderator: Moderators
The teory of custom stock maps without downloads
Hi,
In many servers of NET i see customized maps based into the stock maps (things like Destroyed Village with King Tiger Tanks, Remagem with cracked walls and V2 destroyed) all without need force download of a pk3 customized.
Exists a tutorial or way to i know this method of custom stock maps ????
In many servers of NET i see customized maps based into the stock maps (things like Destroyed Village with King Tiger Tanks, Remagem with cracked walls and V2 destroyed) all without need force download of a pk3 customized.
Exists a tutorial or way to i know this method of custom stock maps ????
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
Green Beret
- Major General
- Posts: 746
- Joined: Mon Apr 19, 2004 12:21 pm
- Contact:
here is a sample
to get the coords(were u want the item)just cruise around the map,finsd were u want your item,and type coord in the console 
Code: Select all
local.bike = spawn script_model
local.bike model "static/vehicle_bmwbike.tik" //for/obj/obj_team4
local.bike.origin = ( 228 474 384 ) //coords(see below)
local.bike.angles = ( 0 0 0 )
local.bike.scale = 1.0
local.bike ghost
Oh my GOD !!!!
You tell for i use a script to spawn things in map.
Ok, in past i learn something about this way of making objects.
But, i dont understand the "logic" of this method. In all sample i see, the objects spawn its a truck, flak, etc...
My questions:
1) How i create for example a new wall (a simple brush) ???
2) Where i put the new .scr file, in server ?
How client understand this configuration ????
3) Is possible change/add spawn points of axis/allies and is possible edit stock maps of single player (i reforce, a TUTORIAL is welcome)
You tell for i use a script to spawn things in map.
Ok, in past i learn something about this way of making objects.
But, i dont understand the "logic" of this method. In all sample i see, the objects spawn its a truck, flak, etc...
My questions:
1) How i create for example a new wall (a simple brush) ???
2) Where i put the new .scr file, in server ?
How client understand this configuration ????
3) Is possible change/add spawn points of axis/allies and is possible edit stock maps of single player (i reforce, a TUTORIAL is welcome)
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
You can't. Not unless you have a model that looks like a wall.mcunha98 wrote:1) How i create for example a new wall (a simple brush) ???
You do not create a new script file, you edit the existing ones ( located inside the file "Pak5.pk3" ).mcunha98 wrote:2) Where i put the new .scr file, in server ? How client understand this configuration ????
Spawn change is possible by moving players spawned in a specific spawn to a new location. I've done just this in the "Hunt spawn fix" mod, get it here.mcunha98 wrote:3) Is possible change/add spawn points of axis/allies and is possible edit stock maps of single player (i reforce, a TUTORIAL is welcome)
Or to fix a glitch (see defenition) in an existing map you can spawn a script_object, give it some dimensions and make it solid. Rough and ready way to do it but the only way if the maps source file is not available.
Glitch;
An area of a map that causes a player to be hidden from view by others, or allows the player to shoot others from a concealed position behind an object or structure.
Code: Select all
//------- to add in a clip brush for player blocking //-------
local.clipbrush = spawn script_object
local.clipbrush.origin = ( 4080 4128 -16 )
local.clipbrush setsize ( 0 0 0 ) ( 42 152 568 )
local.clipbrush solidAn area of a map that causes a player to be hidden from view by others, or allows the player to shoot others from a concealed position behind an object or structure.
- |NSC|-Steelie-NS*LR*
- Sergeant
- Posts: 54
- Joined: Mon Dec 27, 2004 11:24 am
- Location: The Netherlands
- Contact:
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Spawning a wall with texture actually can be done. I have done it. But sometimes I get strange results in my setsize. Would like for the gurus to further test and/or explain just how it works.
example:
local.wall = spawn worldspawn origin ( 640 -235 512 )
local.wall setsize ( -256 -8 -256 ) ( 256 8 256 )
local.wall nodamage
Now then I just threw those coordinates out. But if you actually use this and spawn a brush alongside a wall or touching a wall it will assume that walls texture. I have done it. Also once I tried to block a door in a stock map, so I spawned a worldspawn the same size as the door except made it 16 units thick instead of 8. It took on the french door texture but showed up perpendicular to the door. However the actual brush was in the door frame as I could not enter the door, but the texture was sticking out perpendicular to the door and I could walk right through it. I did this on Southern France for the door that is the entrance to the only single room in the map. Its up on the second level near one corner of the map. Has two windows in it.
This needs more testing, cause it sure would be nice to effectively spawn a textured brush. Im thinking the only catch thus far is it needs to touch or overlap an existing brush in the map.
I also was getting some sort of lightmap error in the console. It's been too long since I did this and I have not tried it again. So maybe it really cant be done afterall.
G3mInI
example:
local.wall = spawn worldspawn origin ( 640 -235 512 )
local.wall setsize ( -256 -8 -256 ) ( 256 8 256 )
local.wall nodamage
Now then I just threw those coordinates out. But if you actually use this and spawn a brush alongside a wall or touching a wall it will assume that walls texture. I have done it. Also once I tried to block a door in a stock map, so I spawned a worldspawn the same size as the door except made it 16 units thick instead of 8. It took on the french door texture but showed up perpendicular to the door. However the actual brush was in the door frame as I could not enter the door, but the texture was sticking out perpendicular to the door and I could walk right through it. I did this on Southern France for the door that is the entrance to the only single room in the map. Its up on the second level near one corner of the map. Has two windows in it.
This needs more testing, cause it sure would be nice to effectively spawn a textured brush. Im thinking the only catch thus far is it needs to touch or overlap an existing brush in the map.
I also was getting some sort of lightmap error in the console. It's been too long since I did this and I have not tried it again. So maybe it really cant be done afterall.
G3mInI
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:



