Jman3ooo Posted August 24, 2002 Author Share Posted August 24, 2002 Originally posted by NickR Add your checking code to G_RunFrame with some sort of time condition if statement, so you can make your checking every so many seconds. E.G. gentity_t *ent; for (i = 0; i < level.maxclients; i++) { ent = level.gentities; if (ent->slomochecktime <= level.time) { //do your checking here ent->slomochecktime = level.time + 1000 //1 second } } Awesome except, I cant find G_runframe Link to comment Share on other sites More sharing options...
NickR Posted August 25, 2002 Share Posted August 25, 2002 It's in file g_main.c around line 2255. Link to comment Share on other sites More sharing options...
Kyle098 Posted August 25, 2002 Share Posted August 25, 2002 hey do u mean that only those 2 players are going to be in slomo or all the plaayers? Link to comment Share on other sites More sharing options...
Kyle098 Posted August 25, 2002 Share Posted August 25, 2002 maybe that if any players are cclose to each other it slows down there speed while alll the other players are at normal speed intill they come close. Link to comment Share on other sites More sharing options...
Jman3ooo Posted August 25, 2002 Author Share Posted August 25, 2002 Originally posted by Kyle098 maybe that if any players are cclose to each other it slows down there speed while alll the other players are at normal speed intill they come close. Thats it, however I am currently failing misserably! Link to comment Share on other sites More sharing options...
Kyle098 Posted August 25, 2002 Share Posted August 25, 2002 hmmmm i wouldnt be able to do it(i maybe would but it would take me a while)BUT it can be done all you have to do is make that thing that all those other peole said how to ake,that senses how close someone is,and say if another thing is a certain distance away then make the persons g_speed lower.would g_speed control how fast he attacks and stuff though??if not then also you got to say to slow down all movements(if you dont know how then check out how dark rage works and do the opposite. Link to comment Share on other sites More sharing options...
Jman3ooo Posted August 26, 2002 Author Share Posted August 26, 2002 Ok While I was playing a FFA 2day I realized sumpthing, The force power rage has ALL the code written already. it speeds up the animimation speed with this: animSpeedScale However I still cant implement the checking if an opponent is near, If some 1 who does have more expereencie in coding would you please insert the vector substract code into the g_runframe found in G_man.c cause I cant do it THAnks a million if you will! Link to comment Share on other sites More sharing options...
Jman3ooo Posted August 27, 2002 Author Share Posted August 27, 2002 Please will some one insert the code above into the source!!! The code for detecting if an Enemy is nearby!!! Thanks a million!!!!!! Link to comment Share on other sites More sharing options...
Jman3ooo Posted September 4, 2002 Author Share Posted September 4, 2002 BUMP FROM THE DESPERATE Link to comment Share on other sites More sharing options...
Primesghost Posted September 4, 2002 Share Posted September 4, 2002 Ok man, I (and most likely the rest of the coders on these forums) are happy to explain things and help you out in just about any way we can. With that said, I think there are a few things you need to understand about how these things work. This quote from the Quake3World modifications programming forum FAQ sums it up pretty well: NOTE: Do not take this as a flame or any other kind of rude response, it's just the facts. Originally posted on Quake3World Modifications Programming Forum FAQ Why are the veterans of this forum such a$$holes to newbies? No one on this forum will be offensive for no reason (with a couple of exceptions ). If somebody answers with an abrasive response more often than not it is because the question asked was very vague. For example: "I've been playing with the Q3 source for a week now. I made some changes and now whenever I jump Q3 crashes. Anybody know why?" Of course not. When you ask a question, post as much information as you can about the problem and be very specific about what the problem actually is: "I've been playing with the Q3 source for a week now. I made some changes and now whenever I jump Q3 crashes. I did a little bit of research and I found that Q3 is crashing in the G_ICrashInHere() function. I've looked through it but I can't see anything wrong. Can anybody see anything wrong with this block of code? Thankyou." "Hey. I just got the Q3 source and I want to make a mod. I haven't done any programming before so I was wondering if you guys could tell me how to implement 1. Realistic weapons 2. Realistic Falling damage 3. Sniper scope 4. Survial style gameplay?" We are not your slaves. That means we are not going to implement features in your mod for you. A better question would have been: "Hey. I just got the Q3 source and I want to make a mod. I haven't done any programming before but I am eager to learn. Could you point me to some tutorials or guides that might help me learn programming?" "Does anyone know how to get QVM's to compile under Windows 98 or how to get Q3 to allow more than 16 weapons?" These questions are in this FAQ. The FAQ is there for a reason. Please read it. Oh... hangon. Nevermind. So in summary: Be specific Don't expect others to do your work Don't ask questions that have been answered before Most importantly - be polite. And humble - programmers are a queer bunch who like to be constantly reminded how "l33t" they are Like I said, I'm not trying to bash you or anything, but you seriously can't expect us to code your mod for you. Link to comment Share on other sites More sharing options...
Jman3ooo Posted September 4, 2002 Author Share Posted September 4, 2002 Yeah thx man isee and understand where you are coming from, with that said I think I will ask one more wuestion: Could some one give me mesome pointers on where I should try to learn after I have gone through the basic tutroials listed on the reasource page? Thanks alot And i once again understand what you are saying and see my extreme stupidity Link to comment Share on other sites More sharing options...
Primesghost Posted September 4, 2002 Share Posted September 4, 2002 These are not quake engine specific, but they deal in ANSI C, C++, and other C variants. They are a great way to learn C in general, which will help your understanding of the JK2 source code a lot. http://www.glenmccl.com/tutor.htm http://www.lysator.liu.se/c/ http://www.gustavo.net/programming/c__tutorials.shtml http://www.cyberdiem.com/vin/learn.html http://www.cs.cf.ac.uk/Dave/C/CE.html http://www.faqs.org/faqs/C-faq/learn-c-cpp-today/ http://www.planet-source-code.com/vb/Tutorial/?lngWId=3 http://www.cs.mun.ca/~michael/c/ http://www.devarticles.com/ http://www.developerfusion.com/ http://www.eng.uc.edu/~jtilley/tutorial.html http://www.gamedev.net/reference/articles/article608.asp http://www.quiver.freeserve.co.uk/OOP1.htm There are an insane amount of C coding tutorials on the Web, keep in mind that learning JavaScript, Java, and PHP also help you learn C, as they are variants of the C language. Heres a kick-a$$ list of free source compilers that a friend found: http://www.idiom.com/free-compilers/ Link to comment Share on other sites More sharing options...
Jman3ooo Posted September 4, 2002 Author Share Posted September 4, 2002 Thanks a million and I am taking a Java course this year so that shall help. I once again apologize for my rashness. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.