Frontpage Forums MAPPING HANGOUT MAPPING NICE-TO-KNOWS Sweet WAC commands | Damage zones & Healing station
This topic has 5 replies, 2 voices, and was last updated 3 years, 11 months ago by Captain.
Viewing 6 posts - 1 through 6 (of 6 total)
    • Captain Keymaster
      August 22, 2017 at 20:02 #1851

      I was browsing the forum at http://www.rsuarmy.com and found some interesting wac commands for NILE users to use in their maps. Maybe they’re not new but I haven’t come across the use of them in any maps before.
      They’re posted by Eraser-EMC2-.

      Death zone without SSN(100xx)

      Hi, found a unknown wac command, i think, calls “PLOOP”.

      Here is a example:

      PLOOP
      if (SSNnearSSN(player,SSN_Object1,5) ) or (ssnonssn(player,SSN_Object2) ) then
      SSNADDHP(player,-20)
      endif
      END

      The SSN_Object1 and SSN_Object2 must be replace with the real SSN-Number of the trigger-object.

      When a player is in a (death) zone, then only this player will lose his hitpoint or something else, not the other player on the map.
      It is a shorter solution like the SSN(10000) to SSN(100xx).

       

      Healing station

      There are other possibilities too.

      Example :

      automatic healing at a spawn point, ssnhp(player,150) inside the PLOOP

      PLOOP
      if ssnnearssn(player,SSN_Spawnpoint,10) then
      ssnhp(player,150)
      endif
      END

      Now, when you are inside the spanw point area of 10 meters, you will be healing yourself.

      SSN_Spawnpoint is the SSN-number of the spawn point, you can see it in NILE.

      The syntax :

      PLOOP
      actions(player)
      END

      I haven’t tested them myself but nevertheless they could be fun to have.

      ________________________
      Captain
      - Website Administrator

    • Inactive
      January 3, 2018 at 16:53 #2375

      Code examples above were generated by N.I.L.E.! Bad code and poor examples, no offense.

      First example is not how you set up a mission zone at all! Players are free to go anywhere – except within 5 metres of ssn_object1! No good!

       

      Assume player starts at X heading for Alpha PSP. Use for example the ssn for alpha as follows to set up your first mission zone if you do not want players to move too far away from objective Alpha:

      if eq(v1,0) then  //use conditions, no need to fire PLOOP every second throughout the entire mission!

      ploop

      if !ssnnearssn(player,133519,560) then  //if  not within 560 metres of alpha player will INEXPLICABLY(!) loose health

      consol(“<cFF0000>*** STAY IN THE MISSION ZONE ***<-co>”)  //and get a WARNING!!! IMPORTANT DETAIL!

      wave(“alarm1.wav”) //and maybe a sound to trigger player attention

      ssnaddhp(player,-10)

      endif

      end

      endif

       

      Now let the player complete an objective to unlock the next zone. Something like if ssndead(target) ENTER set(v1,1) endif. Now you can use v1,1 to set up the next mission zone while the first mission zone is deactivated! Much better. Apart from the inexplicable part. I don’t like mission zones much. No creativity! The only good part is setting up a variable to monitor mission progress. I don’t think soldiers start bleeding spontaneously if they are too far from Berlin.

       

       

      Second example immediately restores all health. Players will also be virtually immortal within 10 meter radius of PSP!! Not good at all!

      Why not create a MASH or a MESS? You can use beds or chairs respectively for players to heal themselves. It should be VERY OBVIOUS to use objects this way!!!

      SWEET WAC:

      //MESS wac by Shemihazah
      if !ssnride(134058) and !ssnride(134059) enter //ssn of beds or chairs

      set(v7,0)

      endif

      if ssnride(134058) then   //ensure following ploop only fires if a player is on the bed or chair!

      ploop

      if ssnonssn(player,134058) then

      ssnaddhp(player,3)

      set(v7,1)

      ssnwave(134058,”medbeat1.wav”,25)

      endif

      end

      endif

      if ssnride(134059) then

      ploop

      if ssnonssn(player,134059) then

      ssnaddhp(player,3)

      set(v7,1)

      ssnwave(134059,”medbeat1.wav”,25)

      endif

      end

      endif

      if eq(v7,1) enter

      consol(“<cDD10FF>Healing…<-co>”)

      endif

       

      Last but not least:

      Do not punish players for your lack of creativity! Think of a solution, mission zones are a work around – at best!

    • Inactive
      January 3, 2018 at 16:56 #2376

      Proper syntax for PLOOP:

      if {conditions} then

      PLOOP

      if {conditions} then

      actions(player,#)

      endif

      END

      endif

    • Inactive
      January 3, 2018 at 17:32 #2377

      As an alternative to SSNADDHP you can use AddExp(player,-xx) to give players a penalty for not following orders. Much better.
      I have not tested it, I assume you can issue penalties by setting a negative value as is the case with ssnaddhp. If I am wrong, my apologies for this bold assumption.

    • Inactive
      January 3, 2018 at 20:10 #2378

      WAC does not get much sweeter….

      //PSP healing wac by the only true masters of WAC: OM/GF!! Shorter edit by Shemihazah
      if never then
      GLOOP PSPS //all psps need to be in the same group of course
      if never then
      v1 = item
      endif
      v2 = item
      END
      endif
      if v2 <= v1 then
      PLOOP
      if ssnalive(player) then
      if ssnnearssn(player,v2,2) then
      if !pisvar(1) then
      ptext(“<cFF0080>Now you get Health near each PSP”)
      psetvar(1)
      endif
      endif
      if ssnnearssn(player,66813,2) or ssnnearssn(player,66814,2) and pisvar(1) then //use ssn from PSP’s
      ssnaddhp(auto,4)
      random(2)
      endif
      endif
      END
      endif

      Add following code for easy testing:

      if weaponfired(1) then
      PLOOP
      if ssnalive(player) then
      ssnaddhp(player,-25)
      endif
      END
      endif

      That’s all I have to say about mission zone restrictions and healing. Good luck!

    • Captain Keymaster
      January 6, 2018 at 13:47 #2385

      Thanks for all the optimizations. Much appreciated! 🙂

      ________________________
      Captain
      - Website Administrator

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.

Latest 10 Maps

Hardmaps AW2 Mappack (12 maps by HmS Shadowman)

Escalation Mappack #2 (42 maps)

Escalation – Mappack (16 maps by oM)

AW2 – Heart Attack Airport

AW2 – L0C Deph-cation V3

AW2 – L0C Psycot

AW2 – L0C Port 2017

AW2 – L0C Lt Dogg

AW2 – Killtruder

AW2 – Green River

Recently Active Members

Profile picture of Captain
Profile picture of Andrey_Berg
Profile picture of -ToF-Oldie
Profile picture of Stinky
Profile picture of Shogun
Profile picture of Coopwarriors
Profile picture of Widow
Profile picture of TheWad
Profile picture of RR SNAKE UK
Profile picture of TO77
Profile picture of korzekwa
Profile picture of Noddynod443
Profile picture of Delta_Rat
Profile picture of Red Dog
Profile picture of chopperprop

Log In

Username:

Password:


Lost password? | Register