HI guys, I'm developing a relatively simple map, quite a decent bit of work has gone into in atm, mostly WASD movement and full terrain implementation. However, I'm having a massive issue with the combat and such.
Firstly, I'm using WASD to move the player, which works fine, but I can't for the life of me figure out how to get the unit (player) to face the point of mouse clicked and fire. As it stands, I'm using a simple left click to play animation, and order unit to cast spell (SS_Shooting)
Additionally, I'm having a huge issue with the SS_Shooting - The only way I can get it to interact with units (enemies and destructibles) is to have "Any unit, takes damage from spell effect" "Unit Dies" - If I remove this it still takes ages to kill any enemies with the SS_Shooting spell attack, even with adjusting the damage values to quite high, I am not sure what the issue is with this.
Final thing, I've been looking around to aid the combat, The player just shoots in the direction he is facing, and can move around with WASD and QE to rotate, but if I could get left click to face location of mouse, and do the attack animation etc as seen above - I tried this with a set XYZ mouse variable, then face unit position based on mouse XYZ click, but it doesn't seem to work
Any one who knows how to fix these issues, I'd be hugely in your favor.
Firstly, I'm using WASD to move the player, which works fine, but I can't for the life of me figure out how to get the unit (player) to face the point of mouse clicked and fire. As it stands, I'm using a simple left click to play animation, and order unit to cast spell (SS_Shooting)
From the trigger I am not sure what you are doing... Why are you ordering a unit to play animations and use an ability (when the animations should be actor events on the unit's actor already)? Nowhere are you instructing where the unit should use the ability (it appears instant and not point target which I would expect is wanted when firing something in response to a mouse click).
Quote:
Final thing, I've been looking around to aid the combat, The player just shoots in the direction he is facing, and can move around with WASD and QE to rotate, but if I could get left click to face location of mouse, and do the attack animation etc as seen above - I tried this with a set XYZ mouse variable, then face unit position based on mouse XYZ click, but it doesn't seem to work
You will need to post your map so we can see how you implemented all the movement mechanics. Instead of QE rotating, you use the same rotation method as QE except to rotate towards the mouse target.
Quote:
Additionally, I'm having a huge issue with the SS_Shooting - The only way I can get it to interact with units (enemies and destructibles) is to have "Any unit, takes damage from spell effect" "Unit Dies" - If I remove this it still takes ages to kill any enemies with the SS_Shooting spell attack, even with adjusting the damage values to quite high, I am not sure what the issue is with this.
Would help to see the map. We cannot possibly tell you why it is not damaging properly without knowing how you damage units in the first place.
Are you using a pre-made system by any chance? Or editing a map made by someone else? You might wish to contact the original author in that case for help.
Ah my apologies, I forgot to put the screenshot of the method for aiming at the mouse - For now I kept the original shoot on left click rather than changing the current attack animations and so on. I would like to keep the movement in as it works fine for the most part, just left clicking to shoot and the effect doing damage is just something I can't get to work.
The WASD movement is an implementation from @programmar if I remember correctly - with some editing - but of course credit will be given :) - I have tried to follow some tutorials for the aforementioned, but there's not a lot out there - Most of the sc2 mapster stuff is no longer hosted.
The map is attached now. This is my first attempt at map making by the way.
I think the "stuff" is still hosted just all the links are broken as they changed the domain name structure for some reason (something a large website should never do).
Yeah I noticed that, some of the tutorial content would have been amazing to help learn whilst making the map. Not sure how to access them if they're still hosted.
My first impressions is that the WASD system you are using is of a very low poor quality (the author had little idea what he was doing?) so I would personally not recommend it in its current form.
For example...
Quote:
General - Wait 0.05 Real Time seconds
He uses actions like this for altering the rotation of the unit which not only use nonsense timing but are also subject to game speed (so players slowing the game can make you turn faster!).
So what exactly do you want to happen when a player "left clicks"? When the player is standing still? When the player is moving? Do you want the unit to rotate first and shoot once facing? Or to start shooting and rotate while shooting? or to always shoot where clicked independent of rotation?
Well it was a quick iteration of someones movement library and it seemed easier/the only way I could get it to work, Is there a better way you could show me?
I'd like the player to face the direction and then shoot, but without any sort of long delay or anything, it'd have to be standing still too due to animations constraints? Hope that makes sense
I'm still fixing it - it's just a trigger to hide the UI, so if you feel like lending a hand you can just remove that action :)
- It might also be in the selecting WASD unit section - with the camera actions.
Any clue as to why the SSS_Shooting effect isn't deal damage either? :)
Also, any idea why the Shooting attack doesn't seem to deal damage properly?
You were modifying the effect "Shooter - SS_Missile Damage Viking" right? Since the damage is dealt by that and currently it is set to deal only "1" damage per missile.
Not that I see, I'm using the SS_Fighter_Shooting - additionally I changed the "Damage Done" "Combat:Amount" to like 300 and it still has no effect, I'm possibly missing something? He still does barely any damage, if any at all (So I had to set a trigger to destroy any unit that gets hit by the effect as a temporary work around)
Here's what I edited:
Also, I've tried to tweak the Player Character to face where I left click the mouse, But I still can't get it to work. I've tried this:
Any clue as to why he doesn't face where I click the mouse?
Not that I see, I'm using the SS_Fighter_Shooting - additionally I changed the "Damage Done" "Combat:Amount" to like 300 and it still has no effect, I'm possibly missing something? He still does barely any damage, if any at all (So I had to set a trigger to destroy any unit that gets hit by the effect as a temporary work around) Here's what I edited:
The effect "Shooter - SS_Missile Damage Viking" is responsible for the damage dealt and not "SS_Missile Damage Drone". You are modifying the wrong effect so it will not deal the damage you intend it to. The "SS_Missile Damage Drone" effect is if you are in drone power up mode. Maybe consider making your own shooter ability where you know what effect does what instead of one intended for the arcade console mini-game from Wings of Liberty.
Quote:
Any clue as to why he doesn't face where I click the mouse?
I am still waiting for you to send me a map which actually has a courser in-game to "click the mouse" with.
Oki doki, I thought it'd just be easier to use the pre existing one for now, I'll look into it myself.
Ah my apologies. I've uploaded a new version below :) It's sort of working with the left clicks, but not as intended. Think of a standard point and click action shooter ( warhammer killteam, halo spartan assault etc)
Do note that this will only support 1 player. You will need to re-structure the triggers to support more than 1 player. Also when playing on BattleNet there will be noticeable latency with the cursor and button press events (even if playing alone) due to the required synchronization.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
HI guys, I'm developing a relatively simple map, quite a decent bit of work has gone into in atm, mostly WASD movement and full terrain implementation. However, I'm having a massive issue with the combat and such.
Firstly, I'm using WASD to move the player, which works fine, but I can't for the life of me figure out how to get the unit (player) to face the point of mouse clicked and fire. As it stands, I'm using a simple left click to play animation, and order unit to cast spell (SS_Shooting)
Additionally, I'm having a huge issue with the SS_Shooting - The only way I can get it to interact with units (enemies and destructibles) is to have "Any unit, takes damage from spell effect" "Unit Dies" - If I remove this it still takes ages to kill any enemies with the SS_Shooting spell attack, even with adjusting the damage values to quite high, I am not sure what the issue is with this.
Final thing, I've been looking around to aid the combat, The player just shoots in the direction he is facing, and can move around with WASD and QE to rotate, but if I could get left click to face location of mouse, and do the attack animation etc as seen above - I tried this with a set XYZ mouse variable, then face unit position based on mouse XYZ click, but it doesn't seem to work
Any one who knows how to fix these issues, I'd be hugely in your favor.
kind Regards
Donny
Bump
From the trigger I am not sure what you are doing... Why are you ordering a unit to play animations and use an ability (when the animations should be actor events on the unit's actor already)? Nowhere are you instructing where the unit should use the ability (it appears instant and not point target which I would expect is wanted when firing something in response to a mouse click).
You will need to post your map so we can see how you implemented all the movement mechanics. Instead of QE rotating, you use the same rotation method as QE except to rotate towards the mouse target.
Would help to see the map. We cannot possibly tell you why it is not damaging properly without knowing how you damage units in the first place.
Are you using a pre-made system by any chance? Or editing a map made by someone else? You might wish to contact the original author in that case for help.
Ah my apologies, I forgot to put the screenshot of the method for aiming at the mouse - For now I kept the original shoot on left click rather than changing the current attack animations and so on. I would like to keep the movement in as it works fine for the most part, just left clicking to shoot and the effect doing damage is just something I can't get to work.
The WASD movement is an implementation from @programmar if I remember correctly - with some editing - but of course credit will be given :) - I have tried to follow some tutorials for the aforementioned, but there's not a lot out there - Most of the sc2 mapster stuff is no longer hosted.
The map is attached now. This is my first attempt at map making by the way.
Kind Regards
Donny
I will look at the map shortly.
I think the "stuff" is still hosted just all the links are broken as they changed the domain name structure for some reason (something a large website should never do).
@ImperialGood: Go
Cheers buddy, appreciate it :)
Yeah I noticed that, some of the tutorial content would have been amazing to help learn whilst making the map. Not sure how to access them if they're still hosted.
kind Regards
Donny
My first impressions is that the WASD system you are using is of a very low poor quality (the author had little idea what he was doing?) so I would personally not recommend it in its current form.
For example...
He uses actions like this for altering the rotation of the unit which not only use nonsense timing but are also subject to game speed (so players slowing the game can make you turn faster!).
So what exactly do you want to happen when a player "left clicks"? When the player is standing still? When the player is moving? Do you want the unit to rotate first and shoot once facing? Or to start shooting and rotate while shooting? or to always shoot where clicked independent of rotation?
@ImperialGood: Go
Well it was a quick iteration of someones movement library and it seemed easier/the only way I could get it to work, Is there a better way you could show me?
I'd like the player to face the direction and then shoot, but without any sort of long delay or anything, it'd have to be standing still too due to animations constraints? Hope that makes sense
Regards
Donny
As far as I can tell there is no cursor? How can the player click anywhere to shoot if he has no cursor?
@ImperialGood: Go
I just removed the UI whilst I was recording some footage :) I'm intending to do a custom UI so I will re enable the mouse then :)
Donny
Did you update the map with the courser fixed? Or are you still fixing it?
@ImperialGood: Go
I'm still fixing it - it's just a trigger to hide the UI, so if you feel like lending a hand you can just remove that action :) - It might also be in the selecting WASD unit section - with the camera actions.
Any clue as to why the SSS_Shooting effect isn't deal damage either? :)
Regards
Donny
@DonnyEvason: Go
Also, any idea why the Shooting attack doesn't seem to deal damage properly?
You were modifying the effect "Shooter - SS_Missile Damage Viking" right? Since the damage is dealt by that and currently it is set to deal only "1" damage per missile.
@ImperialGood: Go
Not that I see, I'm using the SS_Fighter_Shooting - additionally I changed the "Damage Done" "Combat:Amount" to like 300 and it still has no effect, I'm possibly missing something? He still does barely any damage, if any at all (So I had to set a trigger to destroy any unit that gets hit by the effect as a temporary work around) Here's what I edited:
Also, I've tried to tweak the Player Character to face where I left click the mouse, But I still can't get it to work. I've tried this:
Any clue as to why he doesn't face where I click the mouse?
thanks for the help so far.
Donny
The effect "Shooter - SS_Missile Damage Viking" is responsible for the damage dealt and not "SS_Missile Damage Drone". You are modifying the wrong effect so it will not deal the damage you intend it to. The "SS_Missile Damage Drone" effect is if you are in drone power up mode. Maybe consider making your own shooter ability where you know what effect does what instead of one intended for the arcade console mini-game from Wings of Liberty.
I am still waiting for you to send me a map which actually has a courser in-game to "click the mouse" with.
@ImperialGood: Go
Oki doki, I thought it'd just be easier to use the pre existing one for now, I'll look into it myself.
Ah my apologies. I've uploaded a new version below :) It's sort of working with the left clicks, but not as intended. Think of a standard point and click action shooter ( warhammer killteam, halo spartan assault etc)
Donny
Here you go. All you need to do is disable movement when attacking and it should work.
@ImperialGood: Go
This is perfect! Thank you so much dude, really appreciate it :)
Donny
Do note that this will only support 1 player. You will need to re-structure the triggers to support more than 1 player. Also when playing on BattleNet there will be noticeable latency with the cursor and button press events (even if playing alone) due to the required synchronization.