Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH Maps, Mods & Skins (alliedassault.us/forumdisplay.php?f=11)
-   -   scripting help? (alliedassault.us/showthread.php?t=29500)

Dragonwraith 08-24-2003 07:37 PM

scripting help?
 
I can spawn weapons into stock and custom maps BUT i wanna make the respawn time longer but can't find out how. Also i wanna know if you can script in explosions into dest. vill like the ones in omaha?

bluebrooks 08-25-2003 01:11 PM

i never figured out how to change the respawn time, but i would think that there has to be a setting somewhere.

as for the explosions, yes you do this fairly easily with a little scripting.
a) get the coordinates of where you want the explosions to be.
b) write a little thread into destroyed village that spawns them every random amount of seconds.

it would something like...

//(put this part at the main script section
thread crazy_explosions

//(put this part after the main section and before the very bottom
crazy_explosions:
local.waittime = randomint(45) + 15 // gets random # between 15 & 60
wait local.waittime
spawn fx/explosion/mine.tik "origin" "x y z" //where x,y,&z are the coords
// (i just guessed on the tiki file name above)
goto crazy_exlosions

bluebrooks 08-25-2003 01:12 PM

of, don't forget an "end" line after the goto to end the thread

Dragonwraith 08-25-2003 02:22 PM

thanx,
I'll give it a run and tell ya how it came out

Dragonwraith 08-25-2003 02:29 PM

here's the tik you guessed on "emmiters/fx_explosion_mine.tik" but i'v enever been able to get ANY of the emmiter tiks to work. Some one said it was a typo and use "emiters/fx_explosion_mine.tik" (one M) and that still didn't work. Any other ideas?

bluebrooks 08-26-2003 11:06 AM

i tried to get emmiters to work and couldn't either.
but that's not how i got my mines to work.

i am at work and don't have the game or pak files in front of me. (not sure if they are still at home either)
but i am almost positive that i didn't use emmitters.
There is an explosion model for mines, and i think that's what i used.
try looking in models/fx/ or something like that. (if have all the game pak files unzipped, do a search through for any file that has mine in it)

what i was doing was creating a minefield. i spawned triggers at certain locations. when the triggers were tripped, the result was a spawn of a mine explosion.
you are basically trying to do the same thing, but spawning the mine explosions on a schedule instead of through a trigger.

Dragonwraith 08-26-2003 03:51 PM

Quote:

Originally Posted by bluebrooks

//(put this part at the main script section
thread crazy_explosions

//(put this part after the main section and before the very bottom
crazy_explosions:
local.waittime = randomint(45) + 15 // gets random # between 15 & 60
wait local.waittime
spawn fx/explosion/mine.tik "origin" "x y z" //where x,y,&z are the coords
// (i just guessed on the tiki file name above)
goto crazy_exlosions

to make them work you use "emitters" ONE M ans TWO T's... i got smoke sparks and all that stuff to work but i have a question about the script you sent. Do the coors go where "origin" or where "x y & z" go?

bluebrooks 08-26-2003 03:53 PM

where the x, y, and z are.

and like this...
spawn blah/blah.tik "origin" "1000 -1000 1000"

Dragonwraith 08-26-2003 03:53 PM

thanx... I'll give it a shot

newt. 08-26-2003 03:59 PM

coord in console.

Dragonwraith 08-26-2003 07:41 PM

[quote="Lt. SnowBall [70th ID]A2":43ca0]coord in console.[/quote:43ca0]

LOL i know that but the script didn't work :-(

newt. 08-26-2003 08:05 PM

and I wrote it.

http://www.n00b-allstars.com/mohoe/foru ... ic.php?t=9

Dragonwraith 08-27-2003 09:42 AM

so

bluebrooks 08-27-2003 09:54 AM

what was the problem with the script?

Dragonwraith 08-27-2003 10:03 AM

i did what you sent, put in the coords and it never worked


All times are GMT -6. The time now is 12:28 AM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.