• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Cam-lock System v1.-

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Cam-Lock System v1.-

v1.- Cam-Lock System,
I got bored so I decided to make a Cam Lock system like
in a ORPG or something where you type -lock to lock the cam and -unlock to unlock the cam -.-.

  • CMSet
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
      • -------- Can only cam lock to heros. --------
      • Set CMHeros = False
      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
  • CMInt
    • Events
      • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
      • Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
      • Player - Player 4 (Purple) types a chat message containing <Empty String> as A substring
      • Player - Player 5 (Yellow) types a chat message containing <Empty String> as A substring
      • Player - Player 6 (Orange) types a chat message containing <Empty String> as A substring
      • Player - Player 7 (Green) types a chat message containing <Empty String> as A substring
      • Player - Player 8 (Pink) types a chat message containing <Empty String> as A substring
      • Player - Player 9 (Gray) types a chat message containing <Empty String> as A substring
      • Player - Player 10 (Light Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 11 (Dark Green) types a chat message containing <Empty String> as A substring
      • Player - Player 12 (Brown) types a chat message containing <Empty String> as A substring
    • Conditions
    • Actions
      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
      • -------- IF player enters -lock = to true --------
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Substring((Entered chat string), 1, 5)) Equal to (==) -lock
          • Then - Actions
            • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
            • -------- Than it will, Check if player hasn't allready used this command --------
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • CMCheck[(Player number of (Triggering player))] Equal to (==) False
                • Then - Actions
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- IF player hasn't used the command it will --------
                  • -------- Pick every unit in the whole map that is a allie of player --------
                  • Set CM_TempPoint[1] = (Center of (Playable map area))
                    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • CMHeros Equal to (==) False
                      • Then - Actions
                        • Set CM_DummyGroup[1] = (Units within 1000000000.00 of CM_TempPoint[1] matching (((Owner of (Matching unit)) Equal to (==) (Triggering player)) and ((((Matching unit) is selected by (Triggering player)) Equal to (==) True) and (((Matching unit) belongs to an ally of (Triggering play
                      • Else - Actions
                        • Set CM_DummyGroup[1] = (Units within 1000000000.00 of CM_TempPoint[1] matching ((((Owner of (Matching unit)) Equal to (==) (Triggering player)) and (((Matching unit) is A Hero) Equal to (==) True)) and ((((Matching unit) is selected by (Triggering player)) Equal to (==) True) and (
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • Unit Group - Pick every unit in CM_DummyGroup[1] and do (Actions)
                    • Loop - Actions
                      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                      • -------- It will lock to picked unit --------
                      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                      • Camera - Lock camera target for (Owner of (Picked unit)) to (Picked unit), offset by (0.00, 0.00) using Default rotation
                      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                      • -------- Set it so player has used command --------
                      • Set CMUnit[(Player number of (Owner of (Picked unit)))] = (Picked unit)
                      • Set CMCheck[(Player number of (Owner of (Picked unit)))] = True
                      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- Remove Bugs --------
                  • Custom script: call RemoveLocation(udg_CM_TempPoint[1])
                  • Custom script: call DestroyGroup(udg_CM_DummyGroup[1])
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                • Else - Actions
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- If player is using the command than it will show message to player --------
                  • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: |c00ff0000Error|r :...
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
          • Else - Actions
            • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
            • -------- IF player enters -unlock = to true --------
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Substring((Entered chat string), 1, 7)) Equal to (==) -unlock
                • Then - Actions
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- Pick every unit in the whole map that is a allie of player --------
                  • Set CM_TempPoint[1] = (Center of (Playable map area))
                  • Set CM_DummyGroup[1] = (Units within 1000000000.00 of CM_TempPoint[1] matching (((Matching unit) Equal to (==) CMUnit[(Player number of (Owner of (Matching unit)))]) and (((Owner of (Matching unit)) Equal to (==) (Triggering player)) and (((Matching unit) is selected by (Triggering
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • Unit Group - Pick every unit in CM_DummyGroup[1] and do (Actions)
                    • Loop - Actions
                      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                      • -------- IF player hasn't used the command it will --------
                      • -------- Pick every unit in the whole map that is a allie of player --------
                      • Camera - Reset camera for (Owner of (Picked unit)) to standard game-view over 0.00 seconds
                      • Set CMUnit[(Player number of (Owner of (Picked unit)))] = No unit
                      • Set CMCheck[(Player number of (Owner of (Picked unit)))] = False
                      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                  • -------- Remove Bugs --------
                  • Custom script: call RemoveLocation(udg_CM_TempPoint[1])
                  • Custom script: call DestroyGroup(udg_CM_DummyGroup[1])
                  • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
                • Else - Actions
  • CMAuto
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Dying unit) Equal to (==) CMUnit[(Player number of (Owner of (Dying unit)))]
          • Then - Actions
            • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
            • Camera - Reset camera for (Owner of (Dying unit)) to standard game-view over 0.00 seconds
            • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
            • Set CMUnit[(Player number of (Owner of (Dying unit)))] = No unit
            • Set CMCheck[(Player number of (Owner of (Dying unit)))] = False
            • -------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------
          • Else - Actions


Keywords:
Cam Lock System x3GlikE
Contents

Camlock System v1.- (Map)

Reviews
15 November 2015 BPower: Rejecting due to the status of this resource being "needs fix" for years. 18:57, 30th May 2011 Maker: Leaks player groups and the unit group pick range is too large.

Moderator

M

Moderator

15 November 2015
BPower: Rejecting due to the status of this resource being "needs fix" for years.

18:57, 30th May 2011
Maker: Leaks player groups and the unit group pick range is too large.
 
Level 27
Joined
Jun 23, 2009
Messages
4,787
Um... Sorry to say but the description is technically against the rules.
You gotta have a description that explains exactly how the thing works.
On that theme it would also REALLY be in your favor if you had a screenshot showing off the system while in use.
The current image doesnt really tell us much. Also it's kinda... you know... off to have a big black box with your name on it where there's supposed to be an picture of the spell. No offense.

Oh and: The mods are VERY busy. They got lives too, and there's lots and lots of stuff to be moderated.
People wait for WEEKS (or more... :S) to get their stuff moderated, so complaining that your spell hasnt been moderated within five hours is kinda silly. :p
 
Level 12
Joined
May 21, 2009
Messages
994
Well you have to explain what it exactly does it locks first I though it was a system that just locked the camera to a hero now just with a function that allows you to unlock it again.
Also when I uploaded my only spell it got reviewed within next 10 minutes. Just ask an admin in channel if they have time they will review it, I was good friends with TRD so he reviewed it right after I uploaded it.
 
Last edited:
Level 11
Joined
Jul 7, 2010
Messages
709
Um... Sorry to say but the description is technically against the rules.
You gotta have a description that explains exactly how the thing works.
On that theme it would also REALLY be in your favor if you had a screenshot showing off the system while in use.
The current image doesnt really tell us much. Also it's kinda... you know... off to have a big black box with your name on it where there's supposed to be an picture of the spell. No offense.

Oh and: The mods are VERY busy. They got lives too, and there's lots and lots of stuff to be moderated.
People wait for WEEKS (or more... :S) to get their stuff moderated, so complaining that your spell hasnt been moderated within five hours is kinda silly. :p

Not explain that my spells haven't been moderated just saying that I seen a lot of spells unmoderated wondering why :D, I don't really care when my spells get moderated.

Um... Sorry to say but the description is technically against the rules.
You gotta have a description that explains exactly how the thing works.
On that theme it would also REALLY be in your favor if you had a screenshot showing off the system while in use.
The current image doesnt really tell us much. Also it's kinda... you know... off to have a big black box with your name on it where there's supposed to be an picture of the spell. No offense.

Oh and: The mods are VERY busy. They got lives too, and there's lots and lots of stuff to be moderated.
People wait for WEEKS (or more... :S) to get their stuff moderated, so complaining that your spell hasnt been moderated within five hours is kinda silly. :p
Thank you for your kind words :D


I even have an about 3month long system that is still not moderated yet...


So this is basically a simple camera system?
You could say so.


Well you have to explain what it exactly it locks first I though it was a system that just locked the to a hero now just with a function that allows you to unlock it again.
Also when I uploaded my only spell it got reviewed within next 10 minutes. Just ask an admin in channel if they have time they will review it, I was good friends with TRD so he reviewed it right after I uploaded it.
Thats what it does anyway I am not in a rush to get my spell(s) moderated.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: |c00ff0000Error|r :...
^The player group leaks.

Why are you using an array when you're only using one index?

You don't need to pick units within 100000000 range, max map size is 480x480. Therefore the max range is Sqrt(480^2 + 480^2) * 128 = 86889... -> 87000. It could be calculated for each map based on it's dimensions or just pick units in playaple map area.
 
Top