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. [N.B. Sorry for my bad english ]

  • View media
  • View media
  • View media
Report RSS Cover
Comments
ChoochYT
ChoochYT

Good really good. Smart Ai

Reply Good karma Bad karma+3 votes
rr016
rr016

Place the node further to the right from the building?

Reply Good karma Bad karma+3 votes
bengalensis Author
bengalensis

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

Reply Good karma+2 votes
Spi-Hamentsios10
Spi-Hamentsios10

You know you can use godmode when testing maps right?

Reply Good karma Bad karma+2 votes
bengalensis Author
bengalensis

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

Reply Good karma+2 votes
MCh2207Cz
MCh2207Cz

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

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

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

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-Hamentsios10
Spi-Hamentsios10

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

Reply Good karma Bad karma+2 votes
bengalensis Author
bengalensis

With my little knowledge about scripting.

Reply Good karma+2 votes
Spi-Hamentsios10
Spi-Hamentsios10

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

Reply Good karma Bad karma+2 votes
bengalensis Author
bengalensis

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
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

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?

Details
Tags
CoD2, Problem
Date
Duration
Size
1366×768
Views
53 (1 today)
Filename
CoD2SP_s_2019-07-10_18-35-55-084.mp4
Options
URL
Embed
Share
Feed
RSS
Report
Report