Top-down Shooter Ai
#21
Posted 08 April 2010 - 07:38 PM
#22
Posted 30 May 2010 - 10:18 AM

There are currently four weapons:
pistol
SMG
Assault rifle
Sniper rifle
The AI treats them all the same apart from the sniper rifle. The AI never rushes while using the sniper rifle
Edited by Xalrons444, 30 May 2010 - 10:25 AM.
#23
Posted 01 June 2010 - 11:20 PM
#24
Posted 02 June 2010 - 08:19 AM
Edit: Now something useful. I have made three changes
1. I have improved the AI itself maiking it better at choosing targets. i.e. if the nearest enemy is through a wall but the second nearest is in plain view. It will now choose the second nearest enemy as its target.
2. I have created a much better spawning system which does do two things
-allows you to edit the spawing area in the room editor
-tries to make you spawn behind cover, far away from the nearest enemy. Spawn killing used to be common.
3. Improved the HUD. The player's health bar and weapon are now displayed on the HUD.
Edit2: I have improved the AI again. I often found, while playing, that I would be standing behind an enemy firing at it while it ignored me and concentrated on one of my allies. Now I have changed it so that if there is an enemy that is very close and in it's line of sight, it will switch target to it. I am now almost ready to release my editted version of the AI.
Edit3: Ihave sent this editted version Turgon and it is available for donwload from the first post.
Edited by Xalrons444, 06 June 2010 - 05:48 PM.
#25
Posted 09 July 2010 - 09:05 PM
Edited by Xalrons444, 10 July 2010 - 08:24 AM.
#26
Posted 01 December 2010 - 03:24 AM
I modified it with some vision abilities, so that it can only attack you when it sees you. But there are problems with the mp_grid. It doesn't like changing paths.
As an example, the enemies home in on my last known position, but if they don't see me they then stand still, rather than go back to their old routine. Do you know why this is?
Also, I can't figure out how the cover system works. But the AI is still great. Thanks for putting this up.
#27
Posted 21 December 2011 - 05:27 PM
ERROR in
action number 1
of Step Event
for object obj_military_2:
In script vp_tds_ai:
Illegal argument count calling script "vp_tds_ai_grid_walk".
Script requires 3 arguments, 4 have been supplied.
___________________________________________
ERROR in
action number 1
of Step Event
for object obj_military_2:
In script vp_tds_ai:
Error in code at line 111:
normal_cover_x=cover.x+(grid_size/2)+lengthdir_x(i,strategic_direction);
^
at position 31: Unknown variable x
I can fix the unkown var x by simply deleting the .x in the cover.x, and the .y in the cover.y (hope i don't break anything...) but i am not sure how to get past the top error... Any help? And once again, sorry for necro'ing this topic
Also, I am using GM 8.1
Edited by SirGuy, 21 December 2011 - 05:47 PM.
#28
Posted 20 March 2012 - 09:18 PM
EDIT: Spoke too soon. This is trash. Cold be awesome but in order to really get this to work you need an understanding of the script itself. I will attempt to do so and remake this script (if I can) Though I might not even study the script and just try it myself. I'm glad it works for you guys though. Wis I could say the same...
Edited by The Legend, 24 March 2012 - 04:28 PM.
#29
Posted 09 November 2012 - 06:32 AM
#30
Posted 09 November 2012 - 06:32 AM
#31
Posted 09 November 2012 - 06:32 AM
#32
Posted 09 November 2012 - 06:32 AM
#33
Posted 10 November 2012 - 12:23 PM
its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
bro you just spam quadrouple posted. you can't do that. for most reasons moderator. could lock this topic whih would be bad because people use this a lot and need to ask questions about his script.its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
also..
Same with sirguy i get the same error.
AWESOME JOB ON THE SCRIPT BY THE WAY TURGON!
Edited by Greenhawk911, 10 November 2012 - 12:24 PM.
#34
Posted 24 November 2012 - 07:26 AM
its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
bro you just spam quadrouple posted. you can't do that. for most reasons moderator. could lock this topic whih would be bad because people use this a lot and need to ask questions about his script.its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
/>
also..
Same with sirguy i get the same error.
AWESOME JOB ON THE SCRIPT BY THE WAY TURGON!/>
i'm sorry by computer bugged at that moment so i didnt know if it was posted so i refreshed the page like four times and it got posted 4 times im sorry.
#35
Posted 24 January 2013 - 11:46 PM
___________________________________________
ERROR in
action number 1
of Step Event
for object obj_opponent:
In script vp_tds_ai:
Error in code at line 111:
normal_cover_x=cover.x+(grid_size/2)+lengthdir_x(i,strategic_direction);
^
at position 31: Unknown variable x
Sorry for the bump, but I really would like to use this. I'm using GM8.1 Pro.
Edited by Darc_Wolf, 24 January 2013 - 11:48 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











