AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Spawn enemy entity/npc that follows and attacks players (https://forums.alliedmods.net/showthread.php?t=327789)

Desktop 10-10-2020 04:04

Spawn enemy entity/npc that follows and attacks players
 
I was trying to make custom entities/npcs to make a zombie mod-like gamemode for CSGO, but with npcs that spawn as zombies and make hordes with that, but i couldn't find anything like that on the forum.

I would really like to know if someone already worked and posted something that could help creating this.

Some problems i got while making bots enemies of players:
- Bots don't work properly on custom maps that have no .nav created.
- Bots don't refresh teams in case someone changes team after being infected.
- Bots don't attack neutral/enemy entities that humans place on the map.
- Bots don't always chase and follow players to kill them.
- Bots can't crouch if a player is hidden in the map, they usually get stucked with walls.

Bot attack control extension doesn't work anymore, so i was trying to make this a custom entity that would need to "think".

Any help will be useful for this purpose, i really think this would be great for the community to make some gamemodes more relevant.

Bacardi 10-10-2020 04:09

Re: Spawn enemy entity/npc that follows and attacks players
 
I have never tried...
But someone have
[EXTENSION] NPCs in CS:S (extended)

Desktop 10-12-2020 22:47

Re: Spawn enemy entity/npc that follows and attacks players
 
Isn't that for CS:S? should that work for csgo?

rogeraabbccdd 10-15-2020 02:20

Re: Spawn enemy entity/npc that follows and attacks players
 
You can try monster plugin.
https://forums.alliedmods.net/showthread.php?t=217622

And here's CSGO version
https://forums.alliedmods.net/showpo...6&postcount=43

And my API edition if you want to create your own monster plugin.
https://github.com/rogeraabbccdd/CSGO-Monster-API

Desktop 10-16-2020 09:58

Re: Spawn enemy entity/npc that follows and attacks players
 
Thanks a lot!

I reviewed your code and it seems to be in old declarations, maybe i could make an update into new syntax.

Should follow and target attack work fine?

These are some of the actions i would need to code:
- Follow players (crcouch if needed)
- Attack neutral/enemy map placed entities
- Attack players
- Respect takedamage as if its a player
- Simulate playermodel movement according to how it walks


All times are GMT -4. The time now is 05:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.