God Damn.... PLease some one help me!!!!!

Post your scripting questions / solutions here

Moderator: Moderators

New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

God Damn.... PLease some one help me!!!!!

Post by New Guy »

Ok i posted earlier and noone not a sole has posted. All i want is to know how to get rid of the MG 42 and how to script a ob team 3. If its not possible then write that. PLease jsut show me a link..all tuts are on DM maps. I need obj tuts.
please help me out
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Re: God Damn.... PLease some one help me!!!!!

Post by The Jackal »

New Guy wrote:... how to get rid of the MG 42
To which MG42 are you reffering, the portable or stationary ones?

In the SH stock maps, I removed the stat MG42s by using its targetnames.

Code: Select all

$mg42 remove
$mg42_2 remove
That will do it. :wink:

Just a passing note: The tone of your subject line and the body of post seemed a tad ill-mannered and discourteous and un-helpful. We are all here helping each other and we have other obligations, thus sometimes a post may go unanswered and not as quick as one might want it. But just be patient.

There is always a plus in an ounce of courtesy and a glass of patience. :lol:

Welcome to .MAP
Random
Moderator
Posts: 401
Joined: Sun Jun 01, 2003 11:00 pm

Post by Random »

Good Point Jackal and well said. Sorry i seemed to have missed this post earlier other wise i would have said the same thing. Good manors are always rewarded here.

As for you question it is a bit vague to me and most likely the others as well. You want to script a obj team 3? Are you refering to a 3rd team or you want to rework the script of Omaha beach> either could be implied.

So from now on it would be wise to be patient and curtious to others. Also i would like to welcome you to .Map. And just for kicks have you tried to use the search function to see if these questions have been brought up before.

Thanks
Random
Moderator
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

I don't think the MG42 in omaha has any targetnames... so they can be hard to remove the easy way that The Jackal showed you... I'll get back to you on this New Guy... and welcome to .MAP :D
Admin .MAP Forums
Image
Head above heels.
New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

Post by New Guy »

Thaks for all of your help....I know the subject was was not the best. But i am so frustrated. All i do is use the "search option". I have spent days on this site and many others.

ok to clarify.I want to script the Obj_team3 map of MOHAA. Tis is waht i would like to do
!: get ride of all MG 42's on the map.
2: lace some boxes and bared wire in the map.
3: place some fire and smoke in the map.

There are many tuts on DM maps but none on Obj maps. All i need is some help with how to do it. If you all can help me please do. It seems you all are very good at this. Thank you again for repling and i hope you can help me. i am sorry for the tone, i was just very frustrated and noone was helping me, i hope you understand

new guy
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

Well Bjarne BZR was right. The MG42s do not have target names. I am not an AA guy. :o

Another method: Edit the MG42_gun.tik file and add these lines:

Code: Select all

ammorequired	1
usenoammo	0
This does not remove it, but it does not shoot anymore.

To add objects:

Code: Select all

	local.static = spawn script_model
	local.static model "static/bshelf-tall-thin-damaged.tik"   // specify the path and object tiki here
	local.static.origin = ( 2103 -1449 -751 ) // the location of object
	local.static.angles = ( 0 90 0 ) // direction
	local.static solid
or

Code: Select all

local.hbox = spawn models/items/dm_50_healthbox.tik // specify the path and object tiki here
local.hbox.origin = ( -87 231 -999 )
local.hbox.angles = ( 0 0 0 )
local.hbox solid
You can add the fire/ smoke using this method. You can find them in Pak0.pk3> Models > Emitters. However be sure to speficy them as notsolid - instead of solid.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Some funny method is to add 'delete' to the server init section of the mg42 TIK. It'll magically remove any mg42 in the game :)
Image
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

WOW! That's so cool. I tried it on the loadout weapon TIKIs but it does not work there! :cry:
New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

Post by New Guy »

jv_map wrote:Some funny method is to add 'delete' to the server init section of the mg42 TIK. It'll magically remove any mg42 in the game :)
where is that file located...waht pak.

Thanks for all of your help i will try it tonight
if you have more suggestions please let me know
thanks
NG
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

MG42_gun.tik is located in:

ALLIED ASSAULT: Main> PAK0.pk3> Models> Statweapons
SPEARHEAD: Mainta> PAK1.pk3> Models> Statweapons
New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

Post by New Guy »

great job on helping me locate the mg 42 file thaks
Last edited by New Guy on Sun Sep 28, 2003 12:32 am, edited 1 time in total.
New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

Post by New Guy »

[quote="To add objects:

Code: Select all

	local.static = spawn script_model
	local.static model "static/bshelf-tall-thin-damaged.tik"   // specify the path and object tiki here
	local.static.origin = ( 2103 -1449 -751 ) // the location of object
	local.static.angles = ( 0 90 0 ) // direction
	local.static solid
or

Code: Select all

local.hbox = spawn models/items/dm_50_healthbox.tik // specify the path and object tiki here
local.hbox.origin = ( -87 231 -999 )
local.hbox.angles = ( 0 0 0 )
local.hbox solid
You can add the fire/ smoke using this method. You can find them in Pak0.pk3> Models > Emitters. However be sure to speficy them as notsolid - instead of solid.[/quote]

So where does this code go....what file do i need to open to put the code in.... That is for adding object like boxes and wire.

OK i found the fire and smoke tik. but whre do i put this file so it opens the smoke and fire in OBJ_team 3
thaks for your great help
New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

Post by New Guy »

Ok i found the mg file..i tried cahnging the usen ammo to ) but that did nto work so i will try the "delete"...where do i put it i found the server ini line but where in the commnad...see below i pasted it to the reply




TIKI
setup
{
//scale 0.52 // Set default scale to 16/30.5 since world
// is in 16 units per foot and model is in cm's
scale 0.52
path models/statweapons/mg42
skelmodel mg42.skd
surface mg421 shader mg42
surface mg422 shader mg42

}

init
{
server
{
classname TurretGun
weapontype mg
name "MG42"

// turret settings
idleCheckOffset "-56 0 0"
// viewOffset "-32 0 8"
viewOffset "-42 0 10"
viewjitter 0.75
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

New Guy wrote:...where do i put it...
Just put it under the "name" command . So it looks like this:

Code: Select all

init
{
 server
{
classname TurretGun
weapontype mg
name "MG42"
delete
To learn how to spawn objects into maps, just use this as a guide:

http://dynamic4.gamespy.com/~map/mohaa/ ... php?t=5283
New Guy
Lance Corporal
Posts: 12
Joined: Thu Sep 25, 2003 12:05 pm

Post by New Guy »

WEll, i put the delete under the name and still mgs are there. Man i hope you have anotehr idea. I really appreciate all of your help you have been very patient with me...let me know what you think
NG
Post Reply