• Register

I am always a Historical game lover. I want to be a modder and trying too. I love COD,C&C,COH,Man 'o War,...... Hope my wish is fullfilled. I would also like to learn if anyone want to teach me about modding. Currently, I am learning COD4:MW modding.

  • View media
  • View media
  • View media
Report RSS Cover
Post comment Comments
ChoochYT
ChoochYT - - 102 comments

Good really good. Smart Ai

Reply Good karma Bad karma+3 votes
rr016
rr016 - - 124 comments

Place the node further to the right from the building?

Reply Good karma Bad karma+3 votes
bengalensis Author
bengalensis - - 176 comments

Tried, but didn't work for some reason. Still acting same.

Reply Good karma+2 votes
SPi-99
SPi-99 - - 779 comments

You know you can use godmode when testing maps right?

Reply Good karma Bad karma+2 votes
bengalensis Author
bengalensis - - 176 comments

I know but never got feelings to use it. Maybe will use it later.

Reply Good karma+2 votes
MCh2207Cz
MCh2207Cz - - 2,073 comments

you need to add pathnodes for the AI in radiant and then generate those pathnodes ingame in order for the AI to work with cover_right or cover_left. because the AI uses these only when it moves. and since you have no pathnodes then the AI can't move and as a result can't use them.
btw the cover_right and cover_left must contain direction information aiming towards the wall. you do this by using the angle function in entity editor. always make the direction arrow face to the wall.

now, you may ask how to generate pathnodes? it's easy. run the game with these parameters:
+seta thereisacow "1337" +set g_connectpaths 1

the first parameter enables cheats and the second parameter generates pathnodes for the first map you run from console. please note that your map must be in main/maps - otherwise the game will not save the generated pathnodes.

Reply Good karma Bad karma+1 vote
bengalensis Author
bengalensis - - 176 comments

Well the map is full of pathnodes and the enemy didn't spawn at that point but further from the covernode and then moved to the cover. The direction arrow is facing toward the wall. And I ran the game that time with the parameter:
+set g_connectpaths 1. The map is in main/maps. I just want to know why the enemy is not shooting from the cover but only when I am near to it. It is also same with the ally npcs.

Reply Good karma+2 votes
MCh2207Cz
MCh2207Cz - - 2,073 comments

well, in that case i depleted obvious causes for your error. if you are willing to share your testmap files i can analyze it directly.

Reply Good karma Bad karma+1 vote
bengalensis Author
MCh2207Cz
MCh2207Cz - - 2,073 comments

ok, the source of your problem is rather simple - you forgot to add the _load script into your map GSC. just add this line before your player setup line and it will be fixed:
maps\_load::main();
see fixed here: Moddb.com

Reply Good karma Bad karma+2 votes
SPi-99
SPi-99 - - 779 comments

The most important line of the script lol how can it be skipped?

Reply Good karma Bad karma+2 votes
bengalensis Author
bengalensis - - 176 comments

With my little knowledge about scripting.

Reply Good karma+2 votes
SPi-99
SPi-99 - - 779 comments

But it's like the first ever step before you start scripting.

Reply Good karma Bad karma+2 votes
bengalensis Author
bengalensis - - 176 comments

Well, what can I say. First time I scripted a map in cod4, I didn't even declared library functions.
Gotta start the scripting tutorial now. Previously I avoided it because I didn't have even the basic knowledge about programming.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Description

Enemies and allies at cover_right node are not shooting at the player. But AIs at cover_stand and cover_prone are shooting perfectly. Actually not shooting at all until you go to someplace from where the enemy can see you directly. Is there any way to fix this?