Factions??
Moderator: InsideQC Admins
22 posts
• Page 1 of 2 • 1, 2
Factions??
So what tells the game who is who? What separates enemies from team members? So the enemies know to attack you or your parther and not each other? The reason im asking is, can it be added to other entities? More specficially a grenade? So the enemies will run to the grenade and try to attack it until it blows up? Is that possible and what kind of coind would that require?
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
ID's 106 qc code uses an engine builtin to return a client slot (e.g. a player) for the monsters to become "angry" at. I think it's checkclient() but I'm in work and not 100% sure. This is no use because it means they will ignore grenades.
You would need to replace this call with your own function to check for players AND grenades. I recommend looking at the frikbot code for some nice replacements for visible, a fov() check, and stuff like that to get ideas on how that best works. (As Frikbots are programmed to look for clients and monsters due to coop support).
You would need to replace this call with your own function to check for players AND grenades. I recommend looking at the frikbot code for some nice replacements for visible, a fov() check, and stuff like that to get ideas on how that best works. (As Frikbots are programmed to look for clients and monsters due to coop support).
- c0burn
- Posts: 208
- Joined: Fri Nov 05, 2004 12:48 pm
- Location: Liverpool, England
well im talking about non modified bots, just vanilla quake AI. If you have ever played left 4 dead and used the pipe bomb, you know where im going with this. if you dont here is wat happens, player has a pipebomb and when you throw it the zombie are attracted to the pipebomb istead of the player, zombies try to kill pipebomb, they fail, pipebomb goes boom, the dumb zombies die =).
So does anyone have any suggestions of what i can do to make the zombies (in this case modified knights) to be attracted to a shot (thrown) grenade? Maybe even have a priority to go for the pipebomb before the player, instead of which ever is closest? which is how i imagined it would be.
So does anyone have any suggestions of what i can do to make the zombies (in this case modified knights) to be attracted to a shot (thrown) grenade? Maybe even have a priority to go for the pipebomb before the player, instead of which ever is closest? which is how i imagined it would be.
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
i am gona look, im just making sure you know exactly what i want and, it also helps sink it it into my head, idk why, its a personal thing w/e, but ill have a look. And i asked for a suggestion, like what would i need to achieve when i edit/make my own code for it? ugh, idk much coding terms so this is hard to ask stuff. What basic syntax(?) would i need? idk how to word it.....
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
http://c0burn.net/quake/grentest.zip
Here is a modification of id's 1.06 with the following changes:
- Grenades take 5 seconds to explode, no touch damage, increased radius damage to 250
- Monsters will chase any player grenades (but not Ogre ones)
- Monsters will stop attacking a player to chase a grenade that has been spawned
- Monsters will ignore any damage given to them while they are chasing a grenade
All code changes are marked with //c0burn
Hope this helps.
Here is a modification of id's 1.06 with the following changes:
- Grenades take 5 seconds to explode, no touch damage, increased radius damage to 250
- Monsters will chase any player grenades (but not Ogre ones)
- Monsters will stop attacking a player to chase a grenade that has been spawned
- Monsters will ignore any damage given to them while they are chasing a grenade
All code changes are marked with //c0burn
Hope this helps.
- c0burn
- Posts: 208
- Joined: Fri Nov 05, 2004 12:48 pm
- Location: Liverpool, England
Hey thanks!!
just one thing, couldn't you just have told me where to put stuff? I do have to add this onto an already modified qc
just one thing, couldn't you just have told me where to put stuff? I do have to add this onto an already modified qc
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
Nevermind, i got it to work
Thanks a lot c0burn!!
Say, i have shown you our models, we now have zombies in game, a working pipebomb, i recall saying if we show you some models you might consider coding for us. Well here it is again http://www.moddb.com/games/tsluecke. Would you like to relieve some of the pressure off of me and code for us? It would be very much appreciated
@Lardarse
How is copying and paste from the WHOLE source any different, i found what he added, and copied and pasted in the same spot in my source. I had stock AI so i copied the whole AI.qc, and then i found his modified grenade code. I thought there was a lot more to it thats why i asked if he could tell me where.
But i got it, and it works perfect!
Thanks a lot c0burn!!
Say, i have shown you our models, we now have zombies in game, a working pipebomb, i recall saying if we show you some models you might consider coding for us. Well here it is again http://www.moddb.com/games/tsluecke. Would you like to relieve some of the pressure off of me and code for us? It would be very much appreciated
@Lardarse
How is copying and paste from the WHOLE source any different, i found what he added, and copied and pasted in the same spot in my source. I had stock AI so i copied the whole AI.qc, and then i found his modified grenade code. I thought there was a lot more to it thats why i asked if he could tell me where.
But i got it, and it works perfect!
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
Wow, that's cool. An actually scary zombie situation in Quake
TextPad5 kicks as a text editor (Search -> Find In Files) and it is just a few steps above NotePad in simplicity yet has a ton of power.
http://www.textpad.com/download/index.html
If you are going to code QuakeC, I'd recommend nabbing WinMerge too. http://www.winmerge.org
/Exits discussion
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-

Baker - Posts: 3666
- Joined: Tue Mar 14, 2006 5:15 am
@c0burn have textpad, which has search in files, and i searched in qc "c0burn" and it came up with no results, so i just went logically where i think it would go. P.s. can you (or tell me how to) change it so only the zombies will be attracted to the pipebomb? AKA the knight. The knight (modified of course) will be our zombies, and in left 4 dead only regular zombies are attracted to the pipebomb. How it is set up now all the special infected will also be attracted and we dont want that.
Yes the zombies are fully animated and implemented into the game (aside from minor tweaks)
@LonePossum(Shallows)
I want you to have a go at it. Its actually really frustrating to me thats why i took a break from it tried to attempt the pipebomb.
Yes the zombies are fully animated and implemented into the game (aside from minor tweaks)
@LonePossum(Shallows)
I want you to have a go at it. Its actually really frustrating to me thats why i took a break from it tried to attempt the pipebomb.
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
If you can't figure that out, I don't know what to tell you. Just check for the classname.
I don't know why you're using quake entity naming for a total conversion. In fact, in L4D, the director spawns enemies, they're not really placed into the map at all.
Basing your AI on id's is going to make this mod really crappy, it's not suitable for L4D gameplay at all. They're just not fast/agressive enough. By the time you hack it in it would have been easier, better and cleaner to do it from scratch.
I don't know why you're using quake entity naming for a total conversion. In fact, in L4D, the director spawns enemies, they're not really placed into the map at all.
Basing your AI on id's is going to make this mod really crappy, it's not suitable for L4D gameplay at all. They're just not fast/agressive enough. By the time you hack it in it would have been easier, better and cleaner to do it from scratch.
- c0burn
- Posts: 208
- Joined: Fri Nov 05, 2004 12:48 pm
- Location: Liverpool, England
22 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest