Moderator
M
Moderator
15:57, 8th Oct 2009
TriggerHappy187:
This leaks a lot and is buggy. Needs some fixing.
TriggerHappy187:
This leaks a lot and is buggy. Needs some fixing.
(0 ratings)
Oh yes and you have named it incorrectly
First Person = View from units eyes (the camera should be in front of the unit
Third person = View from behind or quite near
Well I don't quite understand what you mean by "when I'm trying to walk forward, the marine suddenly starts facing left, right left and camera shows to wrong direction". I tried it out and by the bridge camera is working fine except that in beginning it is too high and you can't see the unit. As I've explained in the readme you can fix this by having more regions. I made only 1 to keep it simple to other people.Also saw that the marine doesn't walk very smoothly.
Especially when you get near the bridge the camera doesn't show the marine and when I'm trying to walk forward, the marine suddenly starts facing left, right left and camera shows to wrong direction for a moment...
Yeah I didn't really expect that it would be useful to every single person. But if someone wants it then it is there.Still... The looking system was ok I think, but not very useful for me...
So what you are saying is that when you begin the "Walking Mode" the camera automatically resets? Well I made it on purpose so if people want to change the camera view, but I will make a button that resets the camera.make your camera auto set back after using look
Good idea I will put this in!When being attacked like if you hit the space bar your char and camera will auto face that direction
I am not quite sure what you mean. When you apply the camera height and select the Flying unit, the camera will be as high as flying unit+the height you set up for your map, so yes it can be used for flying already.after your done with this system, i would think it would be intresting to make a flying camera system where the camerea is attached to the unit like in your system but instead its flying.
Well, you can use spell book ability if you want. I've made it based on Abilities to make it quicker. So while you walk and you want to look right then you just press 1 button and carry on walking and would not have to stop and search and press some more buttons.Why are you using abilities? If someone (I for example ) wants to use it he must remake it.
Next time use dialogue displayed after pressing ESC.
For start: this system is very hard to implement for a GUI system, since the variables are all initialized in the variables editor when they should be done so in a trigger; otherwise their values will not be transfered into the new map.
Second; it leaks. Oh my, it leaks. Every 0.5 second you create a new location (thats 24 locations per sec if you play full house) and none of those are deleted. I had to wait several minutes after testing for the memory to clean up.
And third, i think moving by 100 each time makes moving very unprecise since you cant move arround in areas with narrow pathing, that would cause you to hopelessly bounce around like there's no tomorrow.
I changed it to 25 each 0.33 second instead, it's still not perfect imo, but that cant be helped since warcraft cant calculate much faster.
Finally; there IS a way to find unit height!
Using GetUnitZ(), which is a jass function though, still you could call GetUnitZ(udg_PointWhereourHeroIs) and set camera offset to that.
Preferably you should check it a bit in front of the unit to make it run more smoothly.
EDIT:
I must say i really liked the system apart from above points, the camera distance and angle were all really nice, the doubble-tap turn was very useful, and many of the features were simply that nice.