Raised This Month: $203 Target: $400
 50% 

Spawn enemy entity/npc that follows and attacks players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 10-10-2020 , 04:04   Spawn enemy entity/npc that follows and attacks players
Reply With Quote #1

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.
__________________
Massive Infection:: Piu-Games
Desktop is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-10-2020 , 04:09   Re: Spawn enemy entity/npc that follows and attacks players
Reply With Quote #2

I have never tried...
But someone have
[EXTENSION] NPCs in CS:S (extended)
__________________
Do not Private Message @me
Bacardi is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 10-12-2020 , 22:47   Re: Spawn enemy entity/npc that follows and attacks players
Reply With Quote #3

Isn't that for CS:S? should that work for csgo?
__________________
Massive Infection:: Piu-Games
Desktop is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 10-15-2020 , 02:20   Re: Spawn enemy entity/npc that follows and attacks players
Reply With Quote #4

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
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't open their eyes and use their brain to find answers.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 10-16-2020 , 09:58   Re: Spawn enemy entity/npc that follows and attacks players
Reply With Quote #5

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
__________________
Massive Infection:: Piu-Games
Desktop is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:31.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode