Search found 476 matches

by Orion
Wed May 24, 2017 9:09 pm
Forum: Artificial Intelligence
Topic: Getting Frikbots to ignore team-specific waypoints?
Replies: 2
Views: 3942

Re: Getting Frikbots to ignore team-specific waypoints?

Was 30, I tried 99999 bit it didn't work. :sad:
by Orion
Wed May 24, 2017 6:11 pm
Forum: Artificial Intelligence
Topic: Getting Frikbots to ignore team-specific waypoints?
Replies: 2
Views: 3942

Getting Frikbots to ignore team-specific waypoints?

Well, I've adapted Frikbots to play TF, and many maps have these doors or elevators that only work for one team. I've added two new b_aiflags to the waypoints (AI_BLUE_ONLY/RED_ONLY) and set the priority to zero on priority_for_thing() if the teams don't match, but it wasn't enough. I guess I have t...
by Orion
Sun Nov 01, 2015 1:13 am
Forum: QuakeC Programming
Topic: Trouble with Chainlightning gun.
Replies: 4
Views: 3765

Re: Trouble with Chainlightning gun.

Silly me, works like a charm. I also made the damage reduce by 40% as the lightning jumps further, until it reaches 1 and then no longer continues. :razz:
by Orion
Sat Oct 31, 2015 7:22 pm
Forum: QuakeC Programming
Topic: Trouble with Chainlightning gun.
Replies: 4
Views: 3765

Trouble with Chainlightning gun.

Hey, I've been trying to immitate Qtest's chainlightning gun, which is an LG that causes a chain reaction that when you shoot an enemy, he will also zap nearby entities and so on until no more entities are visible (really deadly), but I'm having no success so far, on rooms with more than 2 monsters ...
by Orion
Tue Oct 14, 2014 11:35 pm
Forum: QuakeC Programming
Topic: [Tutorial] Making Ogres lob grenades into your cover
Replies: 11
Views: 5731

Re: [Tutorial] Making Ogres lob grenades into your cover

Also, if you are in a higher elevation than the ogre, he does not seem to aim up any higher. Theres probably some bot code , maybe the one mentioned in the other link that would be an upgrade here as well. The ogre will randomly choose to lob a grenade either where he last saw you, or where you are...
by Orion
Wed Aug 27, 2014 3:25 am
Forum: QuakeC Programming
Topic: [Tutorial] Making Ogres lob grenades into your cover
Replies: 11
Views: 5731

[Tutorial] Making Ogres lob grenades into your cover

Do you think the original Ogre isn't challenging enough? In this tutorial we'll make him shoot grenades at your cover, remember the Half-Life HECU soldiers? This code is strongly inspired on the soldier's AI. Step 1. First, you'll open defs.qc and put these lines at the very bottom: .float grenade_t...
by Orion
Tue Aug 26, 2014 10:34 pm
Forum: General Discussion
Topic: Can't submit a tutorial :(
Replies: 1
Views: 1750

Can't submit a tutorial :(

Hey, I don't know if someone already posted something here, but I'm getting MySQL error when trying to post a QC tutorial, and I guess the problem is on the aposthrofes, but there are a lot of vectors on the code so...
Is it okay if I post it on the QC forum?
by Orion
Fri Jan 31, 2014 5:25 pm
Forum: QuakeC Programming
Topic: Map cycle with FRIK_FILE?
Replies: 6
Views: 5033

Re: Map cycle with FRIK_FILE?

Worked, but it keeps cycling between two maps. I think it should memorize the first line, erase it and fputs() into the end of the file.
by Orion
Fri Jan 31, 2014 2:34 am
Forum: QuakeC Programming
Topic: Map cycle with FRIK_FILE?
Replies: 6
Views: 5033

Re: Map cycle with FRIK_FILE?

I'm getting invalid temp-string offset when opening the file :? EDIT: This is the code: string(string old) CycleMap = { local float o; local string line, firstmap, result; result = "start"; // go to start map if it fails o = fopen("mapcycle.txt", FILE_READ); if (o != -1) { line =...
by Orion
Thu Jan 30, 2014 5:00 pm
Forum: QuakeC Programming
Topic: Map cycle with FRIK_FILE?
Replies: 6
Views: 5033

Map cycle with FRIK_FILE?

Hey, I'm kind of a noob with FRIK_FILE, and I don't know if there's already a similar topic, but I would like to do this: make a list of all maps I want to cycle into a single .txt file, and when changing level the game reads the first line, then the second, and so on without creating several files ...
by Orion
Sun Jun 02, 2013 4:55 am
Forum: General Discussion
Topic: Quake Confessions
Replies: 18
Views: 8801

Re: Quake Confessions

I've started playing Quake when I was 4 or 5 years old LOL. My older brother showed it to me, back in 1996 or 1997 iirc. I only managed to finish vanilla Quake on normal skill without cheats. I've finished on hard but in coop mode (only me playing but respawning), without cheats but dying sometimes,...
by Orion
Mon Apr 22, 2013 7:19 pm
Forum: QuakeC Programming
Topic: How to make a rocket fly on a spiral trajectory?
Replies: 12
Views: 3880

Re: How to make a rocket fly on a spiral trajectory?

I'll post the clean code for you, because this one I used there is some mod-specific parameters. These are the clean SpiralThink() and W_FireSecondRocket(), paste them just above W_FireRocket(): void() SpiralThink = { local vector ang; self.nextthink = time + 0.05; if (self.health < time) { remove(s...
by Orion
Mon Apr 22, 2013 4:29 am
Forum: QuakeC Programming
Topic: How to make a rocket fly on a spiral trajectory?
Replies: 12
Views: 3880

Re: How to make a rocket fly on a spiral trajectory?

Got it to work, using this code: void() SpiralThink = { local vector ang; self.nextthink = time + 0.05; if (self.health < time) { if (self.owner.rl_detonation == 1) RocketExplode (); else remove(self); return; } if (self.t_width) { if (self.frags == 0) self.angles_y = self.angles_y - 10; else if (se...
by Orion
Sun Apr 21, 2013 8:25 pm
Forum: QuakeC Programming
Topic: How to make a rocket fly on a spiral trajectory?
Replies: 12
Views: 3880

Re: How to make a rocket fly on a spiral trajectory?

I don't want the rockets to hit *exactly* the same point, depending on the position they will hit a wall, it'll be more likely they will hit a wall side by side or vertically, etc. And I prefer the hard way, 2 individual rockets spiralling, so it's more 'realistic' and there will be 2 trails making ...
by Orion
Sun Apr 21, 2013 7:33 pm
Forum: QuakeC Programming
Topic: How to make a rocket fly on a spiral trajectory?
Replies: 12
Views: 3880

How to make a rocket fly on a spiral trajectory?

I think that should be easy, but I have no clue how to code this. I want to make 2 rockets launched simultaneously from the rocket launcher fly on a spiral pattern, but also towards to where I aimed. Maybe I should spawn an invisible entity to determine the center point which both rockets will fly a...