1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Rubbed the right way, the genie is out of its lamp! The 12th Concept Art Contest Results have been announced.
    Dismiss Notice
  5. The Lich King has a new champion. The results for the 19th Icon Contest are here!
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

The_Flood's CameraSystem V2d

Submitted by lolreported
This bundle is marked as approved. It works and satisfies the submission rules.
By: The_Flood


---


This is a Camera System I created on a hour in GUI. It is fully MPI, and works good.

Anyway, this system allows all players to change the views with the Arrowkeys. The things avaible to change is:

- Distance from a Target.
- Rotation.
- Angle of Attack.

Those three I thought were the most important things.

Well, this system is easy to copy and paste, a lot of comments inside map, also a tutorial on how to copy and paste a Spell/Tutorial, easy.

Well, download the System, check it out, read the comments inside, and comment here!

//Flood - a.k.a. The_Flood

Change Log

UPDATE (OLD):

> I've updated this system now. It now increases the cameras height due the height your unit is at.

> And a little code edit.

> And finally added a Ingame Screen Shot :)


UPDATE (Version 2a):

> I've made the system run faster and I've increased the period loop from 0.02 > 0.03 to avoid abit lagg.

> Fixed a leak (Player Group leak).

> Added a new command (-unstuck) this will unstuck your camera from a unit.

> Added a new trigger that allow you to change your cameraunit.

> Added an option that allow you to pick if you want the players to be able to stuck their camera to friends units.

> Fixed that when your camera unit dies, your camera will be automatically reseted and unstucked.

UPDATE (Version 2b):

> Fixed an issue with the rotating of the camera. Before the camera could spin heavily around and didn't stop, but it's fixed now.

> Added an function called
  • Custom script: call CameraOn(1, true)

with this function you're enabled to disable or enable a specific players camera.
You can simply edit the event to the one you want.

UPDATE (Version 2c)

> Added an option that allow you to change the maximum and minimum distance the camera can be from an unit and the maximum and minimum height your camera can have.

  • -------- Change the maximum and minimum camera options --------
  • -------- ---- --------
  • -------- This is the maximum distance the camera can be from an unit. --------
  • Set MaxDistance = 1750.00
  • -------- This is the minimum distance the camera can be from an unit. --------
  • Set MinDistance = 400.00
  • -------- This is how far up the camera can be, less number = higher. --------
  • Set MaxAngleOfAttack = 270.00
  • -------- This is how far down the camera can be, high number = lower --------
  • Set MinAngleOfAttack = 340.00


this can be found in the CameraSystem Initialization trigger.

UPDATE (Version 2d)

> The four variables MaxDistance, MinDistance, MaxAngleOfAttack and MinAngleOfAttack are now arrays to allow players to have different values.



Keywords:
Camera, System, Flood, The_Flood, Simple, Camera System, Updated, view, arrowkey, arrow, key,
Contents

The_Flood's CameraSystem Version 2d (Map)

Reviews
Moderator
PurplePoot: Requires an ingame screenshot. The_Reborn_Devil: Couldn't find any leaks and it got an ingame screenshot now. Approved
  1. PurplePoot: Requires an ingame screenshot.

    The_Reborn_Devil:
    Couldn't find any leaks and it got an ingame screenshot now.

    Approved
     
  2. scorre

    scorre

    Joined:
    Feb 3, 2008
    Messages:
    19
    Resources:
    0
    Resources:
    0
    Nice but my camera stops faster.
     
  3. lolreported

    lolreported

    Joined:
    Aug 16, 2007
    Messages:
    813
    Resources:
    12
    Tools:
    1
    Maps:
    5
    Spells:
    6
    Resources:
    12
    You are able too change how fast the camera will stop in my system also.
     
  4. Zypher

    Zypher

    Joined:
    May 21, 2008
    Messages:
    215
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    owned lol
     
  5. Leeroy

    Leeroy

    Joined:
    Jan 27, 2009
    Messages:
    390
    Resources:
    3
    Models:
    3
    Resources:
    3
    Thank you alot, this is the system I was looking for.
     
  6. Gamervidsman2000

    Gamervidsman2000

    Joined:
    Feb 10, 2009
    Messages:
    73
    Resources:
    0
    Resources:
    0
    GIVE ME IT!!
    Raped!!!

    Lol
     
  7. D4RK_G4ND4LF

    D4RK_G4ND4LF

    Joined:
    Feb 4, 2009
    Messages:
    1,196
    Resources:
    20
    Models:
    3
    Spells:
    15
    Tutorials:
    2
    Resources:
    20
    in case you are standing on a hill you can't see your unit in some cases
     

    Attached Files:

  8. lolreported

    lolreported

    Joined:
    Aug 16, 2007
    Messages:
    813
    Resources:
    12
    Tools:
    1
    Maps:
    5
    Spells:
    6
    Resources:
    12
    Weird.

    Try change
    • Camera - Set (Player((Integer A)))'s camera Height Offset to (50.00 + CamHeight[(Integer A)]) over 0.50 seconds
    in the
    • CameraSet
    trigger to a negativ value or something. :)
     
  9. Candy

    Candy

    Joined:
    Sep 2, 2007
    Messages:
    43
    Resources:
    0
    Resources:
    0
    Commands in chat window sux. Wouldn't you do that it can be controlled by some other way?
     
  10. syltman

    syltman

    Joined:
    Jun 13, 2007
    Messages:
    1,326
    Resources:
    0
    Resources:
    0
    The only problem I got is that it doesn't work if you raise the height to max and then use the plateau tool the thing gets wierd
     
  11. Slowrider

    Slowrider

    Joined:
    Dec 24, 2007
    Messages:
    2
    Resources:
    0
    Resources:
    0
    I really like your system and ill use it in my map but, is there anyway you can set the CameraUnit variable to the hero a player controls, whether the player creates/loads/revives the hero, instead of a preplaced unit.

    Also if the cameraunit dies then the camera just sits there...
     
  12. lolreported

    lolreported

    Joined:
    Aug 16, 2007
    Messages:
    813
    Resources:
    12
    Tools:
    1
    Maps:
    5
    Spells:
    6
    Resources:
    12
    Thanks!
    I've updated this system to version 2a. Read the change log above to read about the changes.
     
  13. syltman

    syltman

    Joined:
    Jun 13, 2007
    Messages:
    1,326
    Resources:
    0
    Resources:
    0
    Also, if you move the camera to right (pressing the right arrow key) and then move your unit the camera gets bugged.
     
  14. cHeRoL

    cHeRoL

    Joined:
    Mar 30, 2008
    Messages:
    655
    Resources:
    2
    Spells:
    2
    Resources:
    2
    The best camera system I've ever seen.
    5/5 +rep
     
  15. lolreported

    lolreported

    Joined:
    Aug 16, 2007
    Messages:
    813
    Resources:
    12
    Tools:
    1
    Maps:
    5
    Spells:
    6
    Resources:
    12
    Haha, I don't really think it's best, but I'm glad you like it. :) Thanks!
     
  16. cHeRoL

    cHeRoL

    Joined:
    Mar 30, 2008
    Messages:
    655
    Resources:
    2
    Spells:
    2
    Resources:
    2
    It's the best for me.
    I tried many camera systems but when I tried to load the game (save/load) the camera was going crazy O_O.
    Now,all I have to do is just to click the hero :).
     
  17. Slowrider

    Slowrider

    Joined:
    Dec 24, 2007
    Messages:
    2
    Resources:
    0
    Resources:
    0
    i think the height problem is still there, when i use the new system on my map the height is way off... It is way above the unit
     
  18. lolreported

    lolreported

    Joined:
    Aug 16, 2007
    Messages:
    813
    Resources:
    12
    Tools:
    1
    Maps:
    5
    Spells:
    6
    Resources:
    12
    Nice to hear :)

    Uhm... I don't get it, may you attach an image, please? :) Then may it be easier for me to check the problem.
     
  19. neku99

    neku99

    Joined:
    Sep 3, 2009
    Messages:
    443
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    Dude there's a bug when you mess around with the right and left arrow keys, the camera will continually rotate and wont stop rotating.