Need Help Makeing Spotlights In Mp With No Gunners

Post your scripting questions / solutions here

Moderator: Moderators

KcAX18
Corporal
Posts: 37
Joined: Sat Jul 20, 2002 7:57 am
Location: australia
Contact:

Need Help Makeing Spotlights In Mp With No Gunners

Post by KcAX18 »

i think the topic makes the question. any help would be greatly apreciated
thanks.

KcAX19
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You will have to write your own script for this :?.
Image
KcAX18
Corporal
Posts: 37
Joined: Sat Jul 20, 2002 7:57 am
Location: australia
Contact:

Post by KcAX18 »

any tips on what it should envole?
im not really programming litterate.

KcAX19
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Scripting can be hard or easy.

Hard, means HARD!
Live to map, not map to live.
-mohaa_rox, .map
moderator
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

on this occassion hard, yes VERY HARD!!!, you will need 2 get the scripts for the allies/axis using the MG42's there's 1 on here that JV helped with 4 multiplayer,

then if you were 2 hide the MG42 make it a nonsolid entity, and then place the spotlight over the top of it. turn off the firing of the MG42 and bind the light to the gun...

sound easy...? now do the script :D
hope this helps, prob not cos it's all foreign 2 me :-/
KcAX18
Corporal
Posts: 37
Joined: Sat Jul 20, 2002 7:57 am
Location: australia
Contact:

Post by KcAX18 »

not much help guys......
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Lol. Maybe try just making the spotlight w/o the target, I saw this thing in some MOH:X SP test_3 map before, without a gunner, just a spotlight.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You might as well give us some more info. Do you want a spotlight that's controlled by a player or one that just pivots around?
Image
KcAX18
Corporal
Posts: 37
Joined: Sat Jul 20, 2002 7:57 am
Location: australia
Contact:

Post by KcAX18 »

1 that just pivets around
or if posable 1 that is controlled by a player but i will be happy with jsut one that goes around it self

KcAX18
ty
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Did you try to use the rotatex / y / z commands in your script? For example, if you have a light with targetname 'mylight', type something like this:

Code: Select all

rotatelight:
  while($mylight) // loop as long as the light exists
  {
    $mylight rotatez 360
    $mylight time 6 // 60 degrees per second
    $mylight waitmove
  }
end
Paste this code just below your current script. Below level waittill spawn, start this thread using the following command:

Code: Select all

thread rotatelight
Hope this helps! 8)
Image
KcAX18
Corporal
Posts: 37
Joined: Sat Jul 20, 2002 7:57 am
Location: australia
Contact:

Post by KcAX18 »

wouldnt that just make a light tunr around and around?
i want a light the sam as SP but with out a gunna to like......search a beach of enamys.

KcAX19
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yup.

What you want is possible but very complicated. You need to control the flare, light and light bulb from the script.

I can only advise to look through the regular spotlight script and try to isolate parts.
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

ermmm... ok, i like the idea, but where's it leading?

if you have some1 sat atop a tower with just a searchlight and no gun, then u'd have 2 make at least 1 person stay with the searchlight and shouting at his comrades that he's found some1, therefore needing 2 script in awareness, bind other characters 2 the searchlight guy, and get them 2 react in accordance 2 his light movement.

i'm not sure if you're tryin 2 make a SP or MP map, but 4 the amount of scripting that'll need 2 go in2 it 4 all this and a searchlight 2 follow a path of the player, (not sure if you could use "aimat" if it is attached 2 a MG42 as i suggested previously), but if the enemy was spotted, wouldn't he just shoot the searchight?
hope this helps, prob not cos it's all foreign 2 me :-/
KcAX18
Corporal
Posts: 37
Joined: Sat Jul 20, 2002 7:57 am
Location: australia
Contact:

Post by KcAX18 »

tell me more about this "aimat" command
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

say please 1st!!! :p

1st give the gun a targetname

key: targetname
value: gun

just for this example and also the player

key: targetname
value: player

then inside the script main script
main:
thread spot_him
end

spot_him:
$gun aimat $player
end

you may wish 2 add more script to this like if the player can be seen then find a random integer, if he's spotted then point at player else continue with search path...

not sure if this'll work at the moment i couldn't test it, i've scratched my MOH CD :( gotta find me a crack. (and we've all said that 1ce in out lives) but it should work (hopefully) :D
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply