Well sadly I have to say that is the major downturn of ur system.
If you use 0.0625 seconds and u are setting ur missile speed really fast, lets say 50p / second, then it will update ur pos by 3.125 every .0625 seconds, which means that your traceline won't be accurate. I tested a couple of times on units that have small radius and most of the time the bullet passes through the unit instead of exploding. This is because ur pos gets updated every 0.0625 seconds by 3.125 so unless the interval is lucky enough to get the distance between the bullet's point and the target's point to an accurate reading, it will unlikely be less than the target's radius... I tried setting it to 0 instead and it worked much more accurate, but still from far away it get's inaccurate... Any thoughts on how to fix this?
I got the missile and tracking system to work fine. The only problem i'm encountering is the damage, effect, and explosion. In his map, all three types of missiles can damage units when the bullet hits the unit, the ground, or when it explodes after reaching its maxdistance.
In my map it does not happen... Is there something I'm missing here? Do I need to change the actors and models of the missile so that it explodes when it touch a unit or something? Help me out here pls cuz I'm still clueless regarding the data editor.
Guys really... It was my bad... I say again MY BAD!
It had nothing to do with the script, with garbage colection, or with my hardware. It was my DRIVER!
I had the old nvidia driver and after doing a thorough research, I upgraded to nvidia 186.91, and now my 3rd person system runs really smooth on my computer, so smooth that it ain't jagged like before!!
Thanks for all the help, I suggest Bellugh u shuld upgrade ur driver as well. Also you might want to check ur GPU temperature, if it goes above 70c on idle, then you need to open up ur laptop and clean the fans, which I did! My GPU temp on idle drops down from 80c to 40c just by doing that.
There are many people out there doing 3rd person games i am wondering why noone of them is helping, i have no experience with 3rd person because i have never build such a map and i will not creat such a map.
Maybe you could ask for a tutorial in tutorial section, that would be helpful for all.
I tried others' 3rd person system and they are all jerky. The only way to not make it jerky is to use the Camera follow unit group instead, but that shit centers the camera to ur unit...
I was used to JASS not GUI in wc3, back then I never really dealt with alot of periodic triggers, i just created timers and attach objects to the timer. It doesn't seem to lag at all in my computer after I revised it, just the jerkiness, and I will try your while loop trick.
It could be that applying a camera property and zooming it every 0 seconds cause lag. Or it could be the shitt movement system that I'm using. W/e it is, I was hoping to get a decent 3rd person shooting experimental map.
I did a periodic event every 0 secs and input Traceline(position of main unit, camera height: 1, 1); And the traceline_targetPoint is always at the main unit... My camera works just like urs its not pointing at the unit.
I refined my code using what you did, creating local variables for points, angles, and etc...
But... It still lags... I don't know why... it shouldn't becuz my computer can play BadCompany 2 on Med Specs... I'm pretty sure the whole camera engine thingy in sc2 does not support 3rd person well like in wc3... Or am I doing something wrong again?
0
May I ask how big is the file size of your Snow model?
0
Well sadly I have to say that is the major downturn of ur system.
If you use 0.0625 seconds and u are setting ur missile speed really fast, lets say 50p / second, then it will update ur pos by 3.125 every .0625 seconds, which means that your traceline won't be accurate. I tested a couple of times on units that have small radius and most of the time the bullet passes through the unit instead of exploding. This is because ur pos gets updated every 0.0625 seconds by 3.125 so unless the interval is lucky enough to get the distance between the bullet's point and the target's point to an accurate reading, it will unlikely be less than the target's radius... I tried setting it to 0 instead and it worked much more accurate, but still from far away it get's inaccurate... Any thoughts on how to fix this?
0
@Grogian: Go
I didn't now tha... lol, anyways I got the impact to work as well, forgot to include the damage effect data...
0
I got it to work now, thanks, but I'm not sure why the impact doesn't damage the units...
And out of curiosity, why did u set the timeinterval to 0.0625 ?
0
Hi guys,
I did a remodel of Grogian's bullet system in his 3PShooter map: http://www.sc2mapster.com/maps/g-3pshooter/
I got the missile and tracking system to work fine. The only problem i'm encountering is the damage, effect, and explosion. In his map, all three types of missiles can damage units when the bullet hits the unit, the ground, or when it explodes after reaching its maxdistance.
In my map it does not happen... Is there something I'm missing here? Do I need to change the actors and models of the missile so that it explodes when it touch a unit or something? Help me out here pls cuz I'm still clueless regarding the data editor.
0
Guys really... It was my bad... I say again MY BAD!
It had nothing to do with the script, with garbage colection, or with my hardware. It was my DRIVER!
I had the old nvidia driver and after doing a thorough research, I upgraded to nvidia 186.91, and now my 3rd person system runs really smooth on my computer, so smooth that it ain't jagged like before!!
Thanks for all the help, I suggest Bellugh u shuld upgrade ur driver as well. Also you might want to check ur GPU temperature, if it goes above 70c on idle, then you need to open up ur laptop and clean the fans, which I did! My GPU temp on idle drops down from 80c to 40c just by doing that.
0
@HaVoC373: Go
Tq now it works, I'm really new to this editor, in wc3 the metrics completely diferent, distance in hundreds not tenths...
0
I tried others' 3rd person system and they are all jerky. The only way to not make it jerky is to use the Camera follow unit group instead, but that shit centers the camera to ur unit...
0
@s3rius: Go
I was used to JASS not GUI in wc3, back then I never really dealt with alot of periodic triggers, i just created timers and attach objects to the timer. It doesn't seem to lag at all in my computer after I revised it, just the jerkiness, and I will try your while loop trick.
0
@BeLugh: Go
It could be that applying a camera property and zooming it every 0 seconds cause lag. Or it could be the shitt movement system that I'm using. W/e it is, I was hoping to get a decent 3rd person shooting experimental map.
0
Lol take over hive.... there's no doubt, this is from Curse gaming, they are experts ; )
0
@MotiveMe: Go
I had a lag case on another thread, I think it has nothing to do with memory leaks but the fact that I'm dealing with Cameras every 0 second...
0
@rrowland, ur traceline still does not work @@...
I did a periodic event every 0 secs and input Traceline(position of main unit, camera height: 1, 1); And the traceline_targetPoint is always at the main unit... My camera works just like urs its not pointing at the unit.
0
I refined my code using what you did, creating local variables for points, angles, and etc...
But... It still lags... I don't know why... it shouldn't becuz my computer can play BadCompany 2 on Med Specs... I'm pretty sure the whole camera engine thingy in sc2 does not support 3rd person well like in wc3... Or am I doing something wrong again?
0
It seems like even in a test map when I use this 3rd person view system (refer to the map) it lags in my computer...
Is it because of my system specs or bad trigger?
System specs:
Operating system:Windows 2.6.0.6002 (SP 2)
CPU type:Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz
CPU Speed (GHz):2.42
RAM (GB): 3gb
Graphics card model:NVIDIA GeForce 8700M GT
Graphics card driver:nvd3dum.dll
Desktop resolution:1440x900
Hard disk size (GB):103.258
Hard disk free space (GB):35.696