Teraz jest Wt 24 cze, 2025 13:43


Problem z zakonczeniem skryptu+radio w MP

Archiwum działów sekcji Operation Flashpoint
  • Autor
  • Wiadomość
Offline
Avatar użytkownika

żuker

Major

Major

  • Posty: 517
  • Dołączył(a): Wt 22 lut, 2005 18:40
  • Lokalizacja: Naugatuck CT; USA

Problem z zakonczeniem skryptu+radio w MP

PostWt 11 paź, 2005 00:27

Sciagnalem skrypt dzieki ktoremu w jakiejs odleglosci od gracza moga sie spawnowac zolnierze. Jak jeden zginie to na jego miejsce pojawia sie nastepny. I teraz ja mam pytanko, ja ten skrypt zakonczyc? Bo gdy ich zabijam to sie pojawiaja nowi zolnierze. A ja chcialbym zeby po 15 minutach skrypt przestal dzialac i zolnierze przestali sie respawnowac. Jesli ktos sie na tym dobrze zna, to prosze o pomoc. Ponizej zamieszczam ten skrypt:

; AI Respawn Script by angusjm
; 5th March 2004
;
; Call this script using the following syntax:
;
; [1,unit to converge around,array of groups,units per group,type of unit,skill of units,radius around unit to converge around,body disapear on or off (1 on, 0 off)]
;
; The AI will be created of a random one of the type specified and will head towards the unit to converge around
;
;Example [1,player,[east1,east2],6,["WH_Schutze1; WH_Schutze3"],0.1,200,1] exec "hq_attack.sqs"




_wtd = _this select 0
_aUnit = _this select 1

? _wtd == 0: goto "missemall"
_agroups = _this select 2
_apg = _this select 3
_askill = _this select 5
_aradius = _this select 6
_thon = _this select 7
_list=_this select 4;
_ntotal=count _list;




_c = 0
#loop
#gloop
_rg = count units (_agroups select _c)
? _rg >= _apg : goto "misscreate"
_rg = _apg - _rg
#iloop
_rnum = random ((360))
_num = _rnum - (_rnum mod 1)
_d1 = getpos _aunit select 0
_d2 = getpos _aunit select 1
_d3 = 0
_random=random(_ntotal);
_result=_random - ((_random) mod (1));
if (_result==_ntotal) then {_result=_result-1};
_utype = (_list select _result);

_d1 = _d1 + _aradius * sin(_rnum)
_d2 = _d2 + _aradius * cos(_rnum)
_utype createunit [[_d1,_d2,_d3],_agroups select _c,"",_askill,"PRIVATE"]
? _thon == 1 : {_x addeventhandler [{killed},{[0,_this] exec {hq_attack.sqs}}]} foreach units (_agroups select _c)
_agroups select _c move getpos _aunit
leader (_agroups select _c) move getpos _aunit
_rg = _rg - 1
? _rg == 0 : goto "misscreate"
goto "iloop"
#misscreate
_c = _c + 1
? _c == count _agroups : _c = 0; goto "eloop"
goto "gloop"
#eloop
~0.5
goto "loop"

#missemall
~30
deletevehicle (_aunit select 0)
#alll
exit
[/b]
Ostatnio edytowano Wt 11 paź, 2005 22:14 przez żuker, łącznie edytowano 3 razy
Offline
Avatar użytkownika

Radeon

Pułkownik

Pułkownik

  • Posty: 1442
  • Dołączył(a): N 01 sie, 2004 14:10
  • Lokalizacja: Starogard Gdański

PostWt 11 paź, 2005 01:00

; AI Respawn Script by angusjm
; 5th March 2004
;
; Call this script using the following syntax:
;
; [1,unit to converge around,array of groups,units per group,type of unit,skill of units,radius around unit to converge around,body disapear on or off (1 on, 0 off)]
;
; The AI will be created of a random one of the type specified and will head towards the unit to converge around
;
;Example [1,player,[east1,east2],6,["WH_Schutze1; WH_Schutze3"],0.1,200,1] exec "hq_attack.sqs"




_wtd = _this select 0
_aUnit = _this select 1

? _wtd == 0: goto "missemall"
_agroups = _this select 2
_apg = _this select 3
_askill = _this select 5
_aradius = _this select 6
_thon = _this select 7
_list=_this select 4;
_ntotal=count _list;




_c = 0
#loop
#gloop
_rg = count units (_agroups select _c)
? _rg >= _apg : goto "misscreate"
_rg = _apg - _rg
#iloop
_rnum = random ((360))
_num = _rnum - (_rnum mod 1)
_d1 = getpos _aunit select 0
_d2 = getpos _aunit select 1
_d3 = 0
_random=random(_ntotal);
_result=_random - ((_random) mod (1));
if (_result==_ntotal) then {_result=_result-1};
_utype = (_list select _result);

_d1 = _d1 + _aradius * sin(_rnum)
_d2 = _d2 + _aradius * cos(_rnum)
_utype createunit [[_d1,_d2,_d3],_agroups select _c,"",_askill,"PRIVATE"]
? _thon == 1 : {_x addeventhandler [{killed},{[0,_this] exec {hq_attack.sqs}}]} foreach units (_agroups select _c)
_agroups select _c move getpos _aunit
leader (_agroups select _c) move getpos _aunit
_rg = _rg - 1
? _rg == 0 : goto "misscreate"
goto "iloop"
#misscreate
_c = _c + 1
? _c == count _agroups : _c = 0; goto "eloop"
goto "gloop"
#eloop
~0.5
goto "loop"

#missemall
~30
deletevehicle (_aunit select 0)
#alll
~900
goto "stoprespawn"
#stoprespawn


exit


Może tak ? Hmm... nie wiem :?
User of this number is currently dead. Resurrection in 5 minutes, please wait.
Offline
Avatar użytkownika

Czapa

Chorąży

Chorąży

  • Posty: 183
  • Dołączył(a): N 30 sty, 2005 20:32
  • Lokalizacja: Zabrze

PostWt 11 paź, 2005 07:43

Ale czy wtedy nie zakończy się od razu bo zrespawnowaniu jednego żołnierza?
Obrazek
Offline
Avatar użytkownika

Radeon

Pułkownik

Pułkownik

  • Posty: 1442
  • Dołączył(a): N 01 sie, 2004 14:10
  • Lokalizacja: Starogard Gdański

PostWt 11 paź, 2005 13:50

Hmmm.... Raczej nie. Powinnien powtarzać skrypt do tej linijki gdzie jest ~900, aż czas nie upłynie.

@żuker

Sprawdź do najlepiej i powiedz czy działa.
User of this number is currently dead. Resurrection in 5 minutes, please wait.
Offline
Avatar użytkownika

żuker

Major

Major

  • Posty: 517
  • Dołączył(a): Wt 22 lut, 2005 18:40
  • Lokalizacja: Naugatuck CT; USA

PostWt 11 paź, 2005 22:12

Ok, wszystko dziala:). Dziekuje za pomoc, ale mam jeszcze jeden problem.

Robie pewna misje do MP Coop i sciagnalem pewnien fajny skrypt artylerii (gracz wybiera na mapie jaki teren ma byc ostrzelany). I teraz moje pytanie, jak zrobic zeby tylko jedna jednostka mogla uzyc tego skryptu? W moim przypadku jest to gosciu z radiostacja. Bo wiem ze jak gralismy coopa to tylko dowodca druzyny mogl uzyc radia. A jak sie domyslacie gosciu od lacznosci nie bedzie dowodca;)
Offline
Avatar użytkownika

Radeon

Pułkownik

Pułkownik

  • Posty: 1442
  • Dołączył(a): N 01 sie, 2004 14:10
  • Lokalizacja: Starogard Gdański

PostŚr 12 paź, 2005 00:42

Nie ustawiaj tej opcji do uruchomienia w radiu tylko akcją :)
User of this number is currently dead. Resurrection in 5 minutes, please wait.
Offline
Avatar użytkownika

Jon

Generał

Generał

  • Posty: 10721
  • Dołączył(a): Wt 20 lip, 2004 00:43
  • Lokalizacja: Kraków

PostŚr 12 paź, 2005 15:34

Szczegóły na gg :-)
http://www.pajacyk.pl

“Politics is supposed to be the second oldest profession. I have come to realize that it bears a very close resemblance to the first.”
~ Ronald Reagan
Online

xersius

Pułkownik

Pułkownik

  • Posty: 99987
  • Dołączył(a): Pn 29 lip, 2024 15:01

Re: Problem z zakonczeniem skryptu+radio w MP

PostPn 09 wrz, 2024 01:35

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting
Online

xersius

Pułkownik

Pułkownik

  • Posty: 99987
  • Dołączył(a): Pn 29 lip, 2024 15:01

Re: Problem z zakonczeniem skryptu+radio w MP

Online

xersius

Pułkownik

Pułkownik

  • Posty: 99987
  • Dołączył(a): Pn 29 lip, 2024 15:01

Re: Problem z zakonczeniem skryptu+radio w MP

PostPt 06 gru, 2024 22:10

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт
Online

xersius

Pułkownik

Pułkownik

  • Posty: 99987
  • Dołączył(a): Pn 29 lip, 2024 15:01

Re: Problem z zakonczeniem skryptu+radio w MP

PostCz 06 mar, 2025 02:31

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru
Online

xersius

Pułkownik

Pułkownik

  • Posty: 99987
  • Dołączył(a): Pn 29 lip, 2024 15:01

Re: Problem z zakonczeniem skryptu+radio w MP

Online

xersius

Pułkownik

Pułkownik

  • Posty: 99987
  • Dołączył(a): Pn 29 lip, 2024 15:01

Re: Problem z zakonczeniem skryptu+radio w MP

PostPt 06 cze, 2025 00:25

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо

Powrót do Operation Flashpoint

Kto przegląda forum

Użytkownicy przeglądający ten dział: xersius i 21 gości

cron