Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

so... i got that radar finally working...

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
ceriux Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA |

Posted: Thu Oct 09, 2008 6:15 pm Post subject: so... i got that radar finally working... |

and im kinda disappointed the radar works, but what it does is spawn a sprite where the spawn is and the sprite moves like you do in that position... it wasnt really what i thought it was :/ but oh well, atleast i did it ... i also made my rocket launcher throw exploding body parts!
_________________
QuakeDB - Quake ModDB Group

Back to top |

Wazat Joined: 15 Oct 2004 Posts: 732 Location: Middle 'o the desert, USA |

Posted: Thu Oct 09, 2008 8:26 pm Post subject: |

Yay! With some alteration and using the right engine, you should be able to make that radar follow the player everywhere he goes with MOVETYPE_FOLLOW, and be visible only to him (in deathmatch, etc) using drawonlytoclient. _________________ When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.

Back to top |

ceriux Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA |

Posted: Thu Oct 09, 2008 8:42 pm Post subject: |

i dont think iv ever even seen the 2nd thing you've listed before o.o i think i might get the first thing your talking about would it be something with this? radar.owner = self; radar.movetype = MOVETYPE_FOLLOW; radar.nextthink = self + 3; radar.think = MOVETYPE_FOLLOW (self);
_________________
QuakeDB - Quake ModDB Group

Back to top |

Wazat Joined: 15 Oct 2004 Posts: 732 Location: Middle 'o the desert, USA |

Posted: Thu Oct 09, 2008 9:18 pm Post subject: |

Not quite, but close. There are two ways to make it follow you. You're merging them together, which won't work. Here are examples: 1) Set its owner to the player, and its think to a function like this:

Code:
void RadarFollow() { makevectors(self.owner.v_angle); self.origin = self.owner.origin + v_forward*40 + v_right*20; self.think = RadarFollow();
self.nextthink = time;
// Then the radar does its normal think stuff here
}

This will look jittery as the player moves, but it will work without special engine support.
2) Use MOVETYPE_FOLLOW, which is supported by engines like DP:

Code:
radar.movetype = MOVETYPE_FOLLOW; radar.solid = SOLID_NOT; radar.aiment = player; radar.punchangle = radar.angles; radar.view_ofs = '40 20 0'; // I may be doing this wrong, haven't used this feature in a while
// then the radar uses its normal think without anything special. For example:
radar.think = radar_think;
radar.nextthink = time;

If you want to use MOVETYPE_FOLLOW and .drawonlytoclient, you'll need to download the DP engine (or another similar engine) and look at its dpextensions.qc. That has the various features listed with (somewhat difficult) instructions on their use (it's also a file you'll need to add to your mod).
_________________
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.

Back to top |

ceriux Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA |

Posted: Thu Oct 09, 2008 9:22 pm Post subject: |

so far, what iv been adding into my mod only works with DP hehe like the flash light i saw it work partially on another engine but barely, darkplaces seems to be the only one it works atleast partially right on. _________________ QuakeDB - Quake ModDB Group

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group