Home   Help Search Login Register  

Author Topic: Scatter script  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Scatter script
« on: 13 Oct 2004, 06:38:20 »
Think about this the first scene of black hawk down also my intro on my bhd campaign. dont remember what happend in it or dint see the movie? il refresh u.

There are about 70 starving poor somalis surounding a UN food truck. The food truck starts handing out food there is grabbing and screaming for the food. Sudenly a .50cal on the back of a technical nearby fires a burst of about 5 rounds right into the crowd. people scatter runing and screaming in all directions except the 3 or 4 dead somalis lying on the ground dead that were hit by the .50cal. a militia leader yells through a megaphone this food is clamed by Adid and so on blaa blaa blaa.

I need a script that will do the scatter part and I need it to be frantic people tripping over eachother pushing despretly to escape runing in all directions. lots of screaming the works! anybody think they can take that project on? It shouldnt be too hard and you dont need to include the screaming i already have that. just the other parts
Thanks/cheers

Bluelikeu

  • Guest
Re:Scatter script
« Reply #1 on: 13 Oct 2004, 07:55:23 »
i can do the scatter script
easy
but the other stuff accually takes time!!


Thanks,
Bluelikeu

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Scatter script
« Reply #2 on: 14 Oct 2004, 00:20:57 »
Great I cant thank you enough!
But r u able to have people triping over eachother. would this be hard to do. could you make it so they fall but within half a sec they have gotten up and runing. this would be caused by adrenaline. have you seen the movie so u would know?
i will put u in the credits. if u finish this one i have a few more simple ones I need for the campaign.

Also what do u mean by "the other stuff" ??????
once again thank you or if ur from UK CHEERS!

Offline Blanco

  • Former Staff
  • ****
Re:Scatter script
« Reply #3 on: 15 Oct 2004, 16:33:43 »
I've wrote one (Beta) last year by coincidence, I was aiming for a  randompatrol script...

Here it is :


Code: [Select]
;________________________
;::::::::::::::::::::::::
;
;scattermove
;author <Blanco>
;created 16/07/2003 1:46:13
;________________________
;::::::::::::::::::::::::

_Group = _this select 0
_center  = _this select 1
_radius = _this select 2

_GroupLeader = Leader _Group

Scattermove = false

_mx = getpos _center select 0
_my = getpos _center select 1

#start

?count units _Group == "!alive _x" count units _Group:  goto "exit"

?!(scattermove) :"_x commandMove [(_mx + Random (2 * _radius) - _radius), (_mY + Random (2 * _radius) - _radius), 0]" ForEach (units _Group)


@unitready _groupLeader
;hint "move out"

~5 + (random 5)

goto "start"

#exit
exit

Three params :

- Name of the group (group)
- Name of the centerpoint ( object)
- Radius ( number)

eg1 : [groupALpha, tent, 150] exec "scattermove.sqs"
eg2 : [group this, (object 12345), 100] exec "scattermove.sqs"
 
« Last Edit: 15 Oct 2004, 16:40:44 by Blanco »
Search or search or search before you ask.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Scatter script
« Reply #4 on: 16 Oct 2004, 04:38:36 »
thx I will try it

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Scatter script
« Reply #5 on: 16 Oct 2004, 04:42:31 »
Can u make it so the civilians will sprint as fast as they can go. also can i have the random patrol script

Offline XCess

  • Former Staff
  • ****
Re:Scatter script
« Reply #6 on: 16 Oct 2004, 06:10:33 »
a quick tired, early morning thought on how to get units to run at their fastest. in the init field for the unit put:

this setBehaviour "COMBAT"; this setUnitPos "up"

not sure about the quotes around up, I remind you, I'm tired... there's also the very good point of simply setting unit speed in a waypoint, but as I said I'm tired. I ramble when I'm tired.
Sorry.

XCess

p.s have u never heard of the AMERICAN show called Cheers?