OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terame on 22 Sep 2003, 04:42:29

Title: Bullet hits (ricochets) creating atmosphere
Post by: Terame on 22 Sep 2003, 04:42:29
I am trying to work out how to create bullet hits linked to a trigger when players set off a trigger.

would like to have grenade style hits as well, but bullet hits on ground, etc. would be just fine for creating more 'in your face' atmosphere

someone suggested camcreate, but I haven't seen a good description of how this would be done in a script.

Suggestions scripting gurus?
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: General Barron on 22 Sep 2003, 07:37:25
I'm not really sure what you are trying to describe. Could you be a little more clear please?
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 22 Sep 2003, 08:07:22
I'm not really sure what you are trying to describe. Could you be a little more clear please?

Hi General,

Explain more? Sure.

1. A unit is moving in a given direction, and sets off a trigger (as in game mechanic 'trigger')

2. Once the trigger is set off ricochets where bullets are striking walls, trees or ground around the unit; sending him/her running for cover.

Obviously this is designed for real players (not AIs) as it is designed to give the impression of them being under heavy fire.

Hope that makes it a little more clear
Thanks for looking at it ;D




PS - sorry scripting newbie here, I've been OK taking other people's work and playing with it, but nothing original yet, real life keeps getting in the way - soooo annoying ;D
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: General Barron on 22 Sep 2003, 22:24:09
I get it now. One way to do it would be to camcreate bullets somewhere sort off up and away from the player, then use setvelocity to send them flying at the player as though they were fired from a weapon. Depending on how you script it, the bullets may or may not be able to actually hit and kill the player. That seems to me like it would be the best way to do it.
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 24 Sep 2003, 03:05:40
thanks general - but could you give me an example please? I can work with angles but haven't got a clue about original scripting syntax for anything outside the "box"

thanks ;D
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Grendel on 24 Sep 2003, 19:38:34
Hey terame!

I'm making you a script now...

should be done pretty soon

-grendel
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 25 Sep 2003, 03:43:36
Grendel, you're a legend!
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Grendel on 25 Sep 2003, 07:15:16
 ;D( :-[ -modest embarasment at being labeled a legend)Thanks!

I'm just about done with it!  It got a little more involved than one simple script for the Deluxe vesion  ;)

It uses no AI, yet is actually a little more effective than you might have intended!  You really have to shuck and jive to stay alive.

All I have to do is add a function that randomly selects a target from the group and do some tweaking and I'll post a zip!  tell me what you think and I'll adjust if the engine can do it (and if I know how :))

-Grendel
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 25 Sep 2003, 07:48:55
;D( :-[ -modest embarasment at being labeled a legend)Thanks!

I'm just about done with it!  It got a little more involved than one simple script for the Deluxe vesion  ;)

It uses no AI, yet is actually a little more effective than you might have intended!  You really have to shuck and jive to stay alive.

All I have to do is add a function that randomly selects a target from the group and do some tweaking and I'll post a zip!  tell me what you think and I'll adjust if the engine can do it (and if I know how :))

-Grendel


Sounds positively leeeeeethal hehehe
looking forward to drooling over I mean seeing it

-
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 25 Sep 2003, 08:26:00
;D( :-[ -modest embarasment at being labeled a legend)Thanks!

I'm just about done with it!  It got a little more involved than one simple script for the Deluxe vesion  ;)

It uses no AI, yet is actually a little more effective than you might have intended!  You really have to shuck and jive to stay alive.

All I have to do is add a function that randomly selects a target from the group and do some tweaking and I'll post a zip!  tell me what you think and I'll adjust if the engine can do it (and if I know how :))

-Grendel


One question re targeting one member of a unit... once they take cover odes it stop? Hopefully not because I was thinking about the effect of that same fire continuing while they are behind their cover - scaring them into staying behind cover until it stops.

thanks again
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Grendel on 25 Sep 2003, 21:55:35
Oh, it keeps the team suppressed all right-trust me  ;D!

Its done except for adding custom sound.  Since the bullets aren't really being fired I need to read up on how to add a sound in the description.ext ???(haven't had to do it before).

I've got a real simple demo where the players squad is ambushed from a treeline, and I daresay you will like the results...

Should figure this sound thing out soon...

-Grendel

p.s. each "firing point" shoots at a specific target untill it is dead or untill a round threshhold is reached, then it shifts to a new target (etc)
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 26 Sep 2003, 01:55:44
re sounds I have been recently playing with sounds and triggers, converting sounds from wav to ogg (OFPs prefered sound format)

like McClain's famous "Yippeykayay Mutherf#$%er" from Die Hard or "We're on an Express Elevator to hell: going DOWN" from Aliens and attaching them to triggers...

if you need links to converters, etc let me know
The best tutorial is right here on ofpec in editing:cutscenes

hope that helps

-Terame
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Grendel on 26 Sep 2003, 17:47:46
Its done!  I'll send it to you directly (sorry everyone else, it will be submitted oficially after evaluation by terame)

I only got to add one sound.  I'm having a hard time defining multiple sounds in the description.ext (keep getting an error message about no entry for the title even tho its defined  >:()  But I'll figure it out eventualy...

the mission opens from the editor on the malden map.

I was more or less done with it yesterday but my ISP was having problems and i couldn't log on, so sorry for the delay.

-Grendel
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 27 Sep 2003, 06:03:32
OK big "wow!"

...worked like a charm and I copy-pasted to an existing mission and it incorporated very well!

Obviously being explosive rounds they were a little intense, but if there were commented examples of other ammo types, this will be the biggest kickass suppression script(s) ever mate!

You're right about the sound though - definitely need to work on that.

Noticed you used a .wss for the sound, I have been using ogg files, any reason for the .wss?

I have a few recordings from gun ranges I can convert for you if you like

-Terame



---- one other thing, you added a "boom" command - but it refers to a script called "boom.sqs" which isn't in the folder...  ???
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Grendel on 27 Sep 2003, 23:56:15
oops :)

The boom command was for debugging sound issues, and I must have forgotten to remove it from one of the soldiers init fields.

I used .wss files straight out of the DTA/Souds  folder in OFP instead of recording/downloading.  This way the core zip will be nice and small and users can either cut and paste the relavent sounds into the empty mission/sound folder to put in their own (I'll detail it in the ReadMe :)). Plus I'll put the .wss's into a separate zip so people can use those too without having to dePBO their sound folder.

<sigh> now that I know how to put in custom sounds I get to go back and put them in all the other scripts I'm working on...

Joy :-\ ;)

-Grendel

P.S.  If anyone else is interested in the supression script I have dubbed the Pretty Little Hate Machine, it will be released to the public in a day or so.

<edited by me (Grendel) after missing my deadline> P.S.S. (which is BTW a very cost effective Remington 700 Sniper rifle)  Sorry for the stereotypical unrealistic release date :-\ The Readme is the only thing left to add to the Public Beta, and probably more time consuming than the actual script-sorry all, release soon...
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: rhysduk on 28 Sep 2003, 00:19:44
This script sounds amzing guys - whens it out for downlaod ?
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 28 Sep 2003, 04:36:02
oops :)

The boom command was for debugging sound issues, and I must have forgotten to remove it from one of the soldiers init fields.
hehe no worries, was just reporting like a good litle beta tester ;)
Quote
I used .wss files straight out of the DTA/Souds  folder in OFP instead of recording/downloading.  This way the core zip will be nice and small and users can either cut and paste the relavent sounds into the empty mission/sound folder to put in their own (I'll detail it in the ReadMe :)). Plus I'll put the .wss's into a separate zip so people can use those too without having to dePBO their sound folder.
You've thought of everything, well ignore my email I sent you with some new sounds (unless they are helpful of course  ;D)
Quote
<sigh> now that I know how to put in custom sounds I get to go back and put them in all the other scripts I'm working on...

Joy :-\ ;)

-Grendel

P.S.  If anyone else is interested in the supression script I have dubbed the Pretty Little Hate Machine, it will be released to the public in a day or so.
Been having fun with the first one so looking forward to the public release even more - I've already had at least three players nearly change their pants over this one, my favourite has been placing a ricochet noise near the edge of a building in their favourite sniping positions.

Was laughing so hard my wife thought I was going to lay an egg! ;D

Thanks again Grendel!
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 28 Sep 2003, 05:34:55
Grendel, had an idea...

The mission I was working on was based in the MOG (no; NOT connected with 'Blackhawk Down' - that's been done to death) so I will send that through once I've incorporated it all together and see what you think.

I will need to find someone for the briefing though.
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: -Omega- on 03 Oct 2003, 01:26:00
lol, sounds like a sick script, Grendel. I look forward to picking up a copy of it and seeing it in action. Seems... intense :)
Title: Making changes
Post by: Terame on 03 Oct 2003, 06:33:17
Hiya Grendel

when making changes to the intensity of the attack do I simply edit fire.sqs only?

thanks
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Grendel on 05 Oct 2003, 02:58:06
Hey terame,

Actually, you would need to customize each "weapon" seperately (as they are independent in targeting and rate of fire), The fire.sqs is only considered a "Core Script" since it determines the group array and globalizes the variables for the other firing points . An "easy" way to adjust intensity would be to change the max threshold of rounds fired between target selection, and changing the wait times between bursts.  Obviously, adding/deleting certain "weapons" will also change the intensity.

Just use you imagination, and experiment untill I finish a proper readme :)  This is always the hardest part for me...

-Grendel

P.S. Public release very very soon, the real Army is enroaching on my OFP time this week, so you can blame them ;)
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 05 Oct 2003, 03:59:51
no problemo Grendel - I'll play and make notes myself then send them to you in case they are useful for the "readme"

have 'fun' with work :)
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: DBR_ONIX on 23 Nov 2003, 17:21:43
Has the script been reseased yet...
I would be intresting in using this :)
- Ben
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 25 Nov 2003, 10:14:45
Has the script been reseased yet...
I would be intresting in using this :)
- Ben

I have been working on some sample missions, as it only seems to work with elevations, I am also working on a readme...

The reason for the delay is that our wonderful friend MSBlaster came through and invited an older but more aggressive friend with him and I lost all my game files :(

-Terame
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: DBR_ONIX on 23 Jan 2004, 23:22:56
Any chance of sending me the script? Anyone?
Would be greatly apprecated..

Cheers
- Ben
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 24 Jan 2004, 00:36:24
Haven't got it in a running mission (see reason above)

let me know if you want me to send it
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: DBR_ONIX on 02 Feb 2004, 22:19:24
Yea, thats no prob :)
My email is on my site (In sig)..
Cheers
- Ben
Just give me a few hints on how to get the thing started, and that should be fine.. :)
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Wildebeest on 09 Feb 2004, 14:10:05
Maybe a little off topic but I've made a small training thingie with ricochets if you wanna try :)

http://www.goatsgotohell.com/~karl/OFPResAddons/Missions/Peoing.Noe.zip

Whops, you need Resistance for it too... :P
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: Terame on 21 Mar 2005, 00:37:59
Wilde?
As in the Sydney Wilde?
Title: Re:Bullet hits (ricochets) creating atmosphere
Post by: oWn on 23 Mar 2005, 18:06:57
is it released?