OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: paddy on 01 Sep 2005, 12:10:58

Title: Coverfire script EARLY BETA, NEED TESTERS!!
Post by: paddy on 01 Sep 2005, 12:10:58
Early version of coverfire by Paddy (completely untested)

- To execute - To execute coverfire
[unit] exec "coverfire.sqs"
[unit] exec "coverfire.sqs"

   N.B. remember to preprocess the random int.sqf file in init.sqs

- To execute revealtoall
[unit] exec "revealtoall.sqs"

--// coverfire.sqs is a script that makes units cover other units in the group while
they are moving.
Completely untested due to lack of time (and energy) was built for speeder and requires thorough testing HELP!!  Script must be activated for each group member. //--

--// revealtoall.sqs is a script that is similar to general barons AI info sharing
script.  Reveals presence of enemy units to whole of group when unit is detected
by ANY member of the group.  Script must be activated for each group member. //--

All feedback greatly appreciated especially code fixing help and scripting tips!!
(im not the most advanced scripter in the world)

Thankyou

R.E. (http://www.ofpec.com/yabbse/index.php?board=10;action=display;threadid=25124)
   - Original request for script

P.S. Please reply for more info if I have not been very clear here, things sound good in my head but others rarely understand my .... genius.
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: Speeder on 01 Sep 2005, 17:21:22
This is what I get.
Am I missing something, or can you duplicate the error?

[img removed]feedback.jpg[/img]
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: Speeder on 01 Sep 2005, 19:52:09
only did what you said in the readme
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: paddy on 01 Sep 2005, 20:52:24
Hmm, i've just got round to testing it and I dont even get the script to take me that far, think I need to do more debugging

Help from the scripting gurus (cue guru's) would be greatly appreciated right now .....
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: paddy on 02 Sep 2005, 10:16:42
woops, didnt even follow my own instructions ... forgot to put the triggers in the mission *duh*  ;D

I'm thinking of using Lesters invisible targets (http://www.aef-kampagne.de/english/feat_invTargets.htm) instead of creating my own lasertarget to ensure the AI will fire upon it

However AI rate of fire isn't as sporradic and continuos (especially machine gunners) as I would like. I thought of replacing the dofire command with the fire command however I am unsure as to how I would make this command 'universal' because atm you have to specify the muzzle /ammotype of the weapon you want to fire.  

Anyone have any suggestions?
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: 456820 on 02 Sep 2005, 11:03:40
well i know the "Fired" event handler has variables of the ammo type, rifle being used and muzzle so its what you need

havent tried the script yet but im just about to

EDIT - How about a sample mission
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: paddy on 02 Sep 2005, 11:39:57
Dude, chill. Im doin as much as I can .... some ppl have jobs u know.

Sample mission will be posted this weekend

EDIT - thanks for the tip on the EH's btw, didn't think of that
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: 456820 on 02 Sep 2005, 12:21:37
i didnt meen it like that just a little hint incase you didnt think of putting it in i understand you may be busy
im sorry if it came across in the wrong way
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: paddy on 02 Sep 2005, 12:29:47
Mate, i was joking.  It was a valid suggestion and was appreciated.  I merely didnt have the time to make an example mission when i was making the post.

Please dont take my sarcasim the wrong way, all your comments are greatly appreciated and desired.

P.S. I'm trying to quit sarcasim, i've got patches I swear ...

P.P.S. I'm gunna get an example mission posted a.s.a.p.
Title: Re:Coverfire script EARLY BETA, NEED TESTERS!!
Post by: paddy on 02 Sep 2005, 15:10:44
POST HAS BEEN MOVED DUE TO CHANGE IN NATURE OF SUBJECT

PLEASE VISIT NEW POST BELOW

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=25372;start=%200#lastPost