wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Systems
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 07-22-2009, 12:19 PM   #61
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

Hello, i, or some good dude made this in my Campaign map, but if i try it as a campaign, it will error and not load, i do NOT get an error and ive syntax checked it in a normal map, but why wont this vJass work i mah Rpg?
Slaydon is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 07-23-2009, 03:54 PM   #62
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

Now it worked, but could you make the camera be set when you select a guy?
Slaydon is offline   Reply With Quote
Old 07-23-2009, 04:13 PM   #63
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

I am sure that you could easily do that with a quick trigger external to the system.
__________________
Rising_Dusk is offline   Reply With Quote
Old 07-23-2009, 04:42 PM   #64
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

could someone tell me how?
Slaydon is offline   Reply With Quote
Old 07-23-2009, 04:52 PM   #65
Opossum
User
 
Opossum's Avatar
 
Join Date: Mar 2008
Posts: 205

Submissions (4)

Opossum will become famous soon enough (59)Opossum will become famous soon enough (59)

Default

Trigger:
Bwuhuhuhuh
Collapse Actions
Player - Player 1 (Red) selects a unit
Player - Player 2 (Blue) selects a unit
Player - ...
Collapse Conditions
(Triggering unit) equal to YourUnit
Collapse Actions
Custom script: call EnableThirdPersonCam(GetTriggeringPlayer(), GetTriggeringUnit(), 0)
or something of that kind.
Opossum is offline   Reply With Quote
Old 07-23-2009, 05:18 PM   #66
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

Okay thanks, how to make the camera closer?
Slaydon is offline   Reply With Quote
Old 07-23-2009, 05:22 PM   #67
Opossum
User
 
Opossum's Avatar
 
Join Date: Mar 2008
Posts: 205

Submissions (4)

Opossum will become famous soon enough (59)Opossum will become famous soon enough (59)

Default

Aww come on...
Quote:
Collapse JASS:
//   Private constants:
        private constant real DISTANCE_AOA_MIN
        private constant real DISTANCE_DISTANCE_MIN
        private constant real DISTANCE_AOA_MAX
        private constant real DISTANCE_DISTANCE_MAX
//           These values define a linear, mathematical function for the camera's target 
//           distance. You can assign both the max and min distance to two angles of attack.
//           All values inbetween will be interpolated linearly.
Opossum is offline   Reply With Quote
Old 07-23-2009, 05:28 PM   #68
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

oh, okay, now, last question, how can i make when i press left or right, the camera angle will be set to my Angle Variable with 6 arrays?
Its a real if you wonder
Slaydon is offline   Reply With Quote
Old 07-23-2009, 06:03 PM   #69
Opossum
User
 
Opossum's Avatar
 
Join Date: Mar 2008
Posts: 205

Submissions (4)

Opossum will become famous soon enough (59)Opossum will become famous soon enough (59)

Default

This should work:
Trigger:
Bwuhuhuh
Collapse Actions
Player - Player 1 (Red) presses the left arrow key
Conditions
Collapse Actions
Set CurrentPlayerArrayIndex[(Player number of (Triggering player))] = (CurrentPlayerArrayIndex[(Player number of (Triggering player))] - 1)
Custom script: set ThirdPersonCamRot[GetPlayerId(GetTriggerPlayer())] = udg_YourArray[udg_CurrentPlayerArrayIndex[GetPlayerId(GetTriggerPlayer())-1]]

It's not really efficient but as you're using GUI you shouldn't care about efficiency anyway.
Opossum is offline   Reply With Quote
Old 08-04-2009, 01:14 PM   #70
Barade
User
 
Barade's Avatar
 
Join Date: May 2006
Posts: 164

Barade is on a distinguished road (14)

Default

Great system, will use it in my map + reputation.
__________________
Barade is offline   Reply With Quote
Old 08-06-2009, 12:54 PM   #71
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

is there a custom script code to set the cameras height to make it more effective?

I mean that it sets the camera over the terrain in a 0.01 trigger -_-
Edit: two hours too early to bump D:

Last edited by Pyrogasm : 08-12-2009 at 12:01 PM.
Slaydon is offline   Reply With Quote
Old 08-12-2009, 11:48 AM   #72
Opossum
User
 
Opossum's Avatar
 
Join Date: Mar 2008
Posts: 205

Submissions (4)

Opossum will become famous soon enough (59)Opossum will become famous soon enough (59)

Default

An external trigger would work for a GUI user. It is kinda ugly though and you have to do all the calculations from the main function again.
I think the easiest way would be to reduce the TIMEOUT value:
Collapse JASS:
        private constant real TIMEOUT
//           Timeout for the periodic camera timer. Smaller values make the camera react
//           faster but also affect performance.
But be careful to not use too low values. The terrain sampling part is pretty performance heavy (example: using a TERRAIN_SAMPLE of 32, CLIFF_DISTANCE of 500 and a current camera distance of 500, the terrain is sampled at 32 points per iteration).
If that is still too slow you can lower the PAN_DURATION which will effect all other camera fields too though.

But from my experience the default height adjustion works just fine ingame. Even at 90 cliffs (which shouldn't be passable anyway) the cam only needs 0.5 seconds to adjust the height by default.
Opossum is offline   Reply With Quote
Old 08-12-2009, 12:04 PM   #73
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

I didnt fully understand that, could you give me the whole code to react really fast?
Slaydon is offline   Reply With Quote
Old 08-12-2009, 12:11 PM   #74
Opossum
User
 
Opossum's Avatar
 
Join Date: Mar 2008
Posts: 205

Submissions (4)

Opossum will become famous soon enough (59)Opossum will become famous soon enough (59)

Default

private constant real TIMEOUT = 0.1
change it to 0.01. If it lags increase it again.
Opossum is offline   Reply With Quote
Old 08-12-2009, 12:21 PM   #75
Slaydon
User
 
Join Date: Jul 2009
Posts: 26

Slaydon has little to show at this moment (0)

Default

Thank you very much
Slaydon is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 10:19 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2020, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services