Alliedassault           
FAQ Calendar
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page scripting help?
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

Reply
 
Thread Tools Display Modes
scripting help?
Old
  (#1)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default scripting help? - 08-24-2003, 07:37 PM

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?
  
Reply With Quote
Old
  (#2)
bluebrooks is Offline
Senior Member
 
Posts: 156
Join Date: Jun 2002
   
Default 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
  
Reply With Quote
Old
  (#3)
bluebrooks is Offline
Senior Member
 
Posts: 156
Join Date: Jun 2002
   
Default 08-25-2003, 01:12 PM

of, don't forget an "end" line after the goto to end the thread
  
Reply With Quote
Old
  (#4)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 08-25-2003, 02:22 PM

thanx,
I'll give it a run and tell ya how it came out
  
Reply With Quote
Old
  (#5)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 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?
  
Reply With Quote
Old
  (#6)
bluebrooks is Offline
Senior Member
 
Posts: 156
Join Date: Jun 2002
   
Default 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.
  
Reply With Quote
Old
  (#7)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 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?
  
Reply With Quote
Old
  (#8)
bluebrooks is Offline
Senior Member
 
Posts: 156
Join Date: Jun 2002
   
Default 08-26-2003, 03:53 PM

where the x, y, and z are.

and like this...
spawn blah/blah.tik "origin" "1000 -1000 1000"
  
Reply With Quote
Old
  (#9)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 08-26-2003, 03:53 PM

thanx... I'll give it a shot
  
Reply With Quote
Old
  (#10)
newt. is Offline
2nd Lieutenant
 
newt.'s Avatar
 
Posts: 3,025
Join Date: Mar 2002
   
Default 08-26-2003, 03:59 PM

coord in console.
  
Reply With Quote
Old
  (#11)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 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 :-(
  
Reply With Quote
Old
  (#12)
newt. is Offline
2nd Lieutenant
 
newt.'s Avatar
 
Posts: 3,025
Join Date: Mar 2002
   
Default 08-26-2003, 08:05 PM

and I wrote it.

http://www.n00b-allstars.com/mohoe/foru ... ic.php?t=9
  
Reply With Quote
Old
  (#13)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 08-27-2003, 09:42 AM

so
  
Reply With Quote
Old
  (#14)
bluebrooks is Offline
Senior Member
 
Posts: 156
Join Date: Jun 2002
   
Default 08-27-2003, 09:54 AM

what was the problem with the script?
  
Reply With Quote
Old
  (#15)
Dragonwraith is Offline
Senior Member
 
Posts: 1,609
Join Date: Mar 2003
Location: I'm a MASShole
   
Default 08-27-2003, 10:03 AM

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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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