All pastes #66966 Raw Edit

Unnamed

public text v1 · immutable
#66966 ·published 2006-06-18 20:56 UTC
rendered paste body
<Gnurdux> tell me what you were gonna say
<Gnurdux> so what the current one does is display it once the shot is fired
<Gnurdux> whereas you want it constant
<Gnurdux> i think its too hard
<Mr_Molez> yeh
<Gnurdux> i can try tho
<Mr_Molez> like a constant steal flag
<Gnurdux> hehe
<Gnurdux> except as long as the shot
<Mr_Molez> yeh :D
<Gnurdux> thats would be awesome
<Gnurdux> lol
<Mr_Molez> :D
<Mr_Molez> i have the best ideas P
<Gnurdux> maybe a yellow line?
<Mr_Molez> yeh needs to be visible but not too visible 
<Gnurdux> why not too visible?
<Mr_Molez> it can be distracting when loads of shots have been fired
<Gnurdux> Mr_Molez ahh
<Gnurdux> i thought it doesn't show up for shots that have already been fired
<Gnurdux> only when you are about to fire
<Mr_Molez> OH NICE IDEA !!!
<Mr_Molez> i didnt think of that lol
<Gnurdux> and it would be a gray line
<Mr_Molez> yeh sure gr8 ! :P u can be bright ellow then :D
<Gnurdux> i dunno how
<Gnurdux> i think iots way too jhard
<Mr_Molez> oh
<Mr_Molez> ok :(
<Gnurdux>     virtual void radarRender() const = 0;
<Gnurdux> hmmm
<Gnurdux> that could be a good src of code
<Gnurdux> void   ThiefStrategy::radarRender() const
<Gnurdux> {
<Gnurdux>   // draw all segments
<Gnurdux>   const std::vector<ShotPathSegment>& segmts = getSegments();
<Gnurdux>   const int numSegments = segmts.size();
<Gnurdux>   glBegin(GL_LINES);
<Gnurdux>     for (int i = 0; i < numSegments; i++) {
<Gnurdux>       const ShotPathSegment& segm = segmts[i];
<Gnurdux>       const float* origin = segm.ray.getOrigin();
<Gnurdux>       const float* direction = segm.ray.getDirection();
<Gnurdux>       const float dt = float(segm.end - segm.start);
<Gnurdux>       glVertex2fv(origin);
<Gnurdux>       glVertex2f(origin[0] + dt * direction[0], origin[1] + dt * direction[1]);
<Gnurdux>     }
<Gnurdux>   glEnd();
<Gnurdux> }
<Gnurdux> thats the th cocer
<Gnurdux> *TH code
<Mr_Molez> oo
<Gnurdux> so what i would have to do is hwnever you move, make a new shot strategy object, and render it
<Gnurdux> or something like that
<Mr_Molez> nah thats a hard way of doing it
<Gnurdux> yea i know
<Gnurdux> il have to figure something otu
<Mr_Molez> the best way i think
<Mr_Molez> is to use the code i already have made
<Mr_Molez> and try to keep that on constantly
<Mr_Molez> then adapt it from there
<Gnurdux> Mr_Molez did you make that code?
<Mr_Molez> no
<Gnurdux> just by copying from laser to the normal shot basically lol
<Mr_Molez> needs to make fake shots somehow
<Gnurdux> yes
<Gnurdux> hopefully i can do it
<Gnurdux> if i can, it will be sweet
<Gnurdux> so fuckin useful
<Mr_Molez> how about an automatic shot every 0.3 seconds constantly but the shots wont be visible and cant hit anything
<Mr_Molez> or something
<Gnurdux> crap
<Gnurdux> ok
<Gnurdux> Mr_Molez im gonna do it better than that
<Mr_Molez> oh ?
<Gnurdux> ill put osmething in radarrenderer.cxx
<Gnurdux> if i do it at all, ill do it WELL
<Mr_Molez> u can do it, u rule !
<Gnurdux> is it OK if it has a laser shot length :P
<Mr_Molez> hmmm sure
<Gnurdux> really?
<Mr_Molez> but will it be possible to make it longer after ?
<Gnurdux> lasers are usually longer range than normal shots?
<Gnurdux> Mr_Molez what do you mean>
<Mr_Molez> they are ?
<Mr_Molez> ahh ok thats fine
<Mr_Molez> i would prefer it to be the same length as the shot die length
<Mr_Molez> but ok
<Gnurdux> yea, so would I
<Gnurdux> ill try lasers for now tho
<Mr_Molez> yay
<Gnurdux> don't get your hopes up...
<Gnurdux> i need to get a shotpath first
<Mr_Molez> :)
<Gnurdux> SWEET i might be able to do with normal lifetime
<Gnurdux>    FiringInfo(const BaseLocalPlayer&, int id);
<Gnurdux> damn it where the fuck is that defined?
<Mr_Molez> is what
<Gnurdux> nothing
* Gnurdux hopes this works
<Gnurdux> when ig et it working, ill send you a screenshot
<Gnurdux> and keep it for myself
<Gnurdux> j/k
* Mr_Molez cires
<Gnurdux> im JOKING
<Gnurdux> lol
* Gnurdux wonders what servers you will cheat on
<Gnurdux> the scary thing is: once i give it to you, i will never know if your using it or not
<Gnurdux> you might even use during matches
<Gnurdux> you can and should use in matches, justn ot against m
<Gnurdux> r
<Gnurdux> *me
<Gnurdux> or my team
<Mr_Molez> i wont use it in ol matches ever
<Gnurdux> ok
<Gnurdux> but please do use in ducati matches
<Mr_Molez> y ?
<Gnurdux> why not :P
<Gnurdux> to further sabotage their dead league
<Gnurdux> i thought the OL WAS the ducati league
<Gnurdux> or sprung up from it
<Mr_Molez> lol u want ducati league dead ?
<Gnurdux> it already is isnt it/
<Gnurdux> didn't OL like replace it/
<Mr_Molez> no ol is in competition with it
<Gnurdux> ah
<Gnurdux> but ducati-style.bzleague.org points to it
<Gnurdux> or it used to
<Mr_Molez> ducati-style.bzflag.org ?
<Gnurdux> yea
<Mr_Molez> yeh i got the domain ducati-style ages
<Mr_Molez> ago
<Mr_Molez> that site works just by chance :P
<Mr_Molez> u coded shot path ?
<Gnurdux> im workin on it
<Gnurdux> right now it makes a yellow line to one of the corners
<Mr_Molez> :D
<Gnurdux> wow
<Gnurdux> what i have now is awesome
<Gnurdux> not working, but awesome
<Mr_Molez> what is it !
<Mr_Molez> what is it !
<Gnurdux> not much
<Gnurdux> it displays a random jiggly white line coming out of your tank
<Mr_Molez> heh
<Gnurdux> i just need to set the velocity correctly
<Mr_Molez> take a pic !
<Gnurdux> Mr_Molez its ALMOST DONE
<Gnurdux> won't happen for SWs tho
<Gnurdux> not yet anyway
<Gnurdux> it doesn't support handicap and never wilkl
<Mr_Molez> COOL !
<Gnurdux> Mr_Molez should it support SWs?
<Gnurdux> so that you can see where your SW will go?
<Mr_Molez> no
<Gnurdux> ok :P
<Gnurdux> only 1 file is changed
<Gnurdux> ill send it to you\
<Gnurdux> src/bzflag/RadarRenderer.cxx
<Mr_Molez> U RULE !!
<Mr_Molez> can u give me code and what line its on
<Mr_Molez> will be easier for me
* DCC SEND RadarRenderer.cxx to Mr_Molez aborted.
<Gnurdux>    FiringInfo myInfo(*myTank, 0);
<Gnurdux>   if (myInfo.flagType != Flags::ShockWave) {
<Gnurdux>     if (!BZDB.isTrue(StateDatabase::BZDB_SHOTSKEEPVERTICALV)) myInfo.shot.vel[2] = 0.0f;
<Gnurdux>    myInfo.flagType = Flags::Laser;
<Gnurdux>    const float cs = colorScale(myInfo.shot.pos[2], muzzleHeight);
<Gnurdux>    glColor3f(1.0f * cs, 1.0f * cs, 1.0f * cs);
<Gnurdux>    LocalShotPath myPath(myInfo);
<Gnurdux>    myPath.radarRender();
<Gnurdux>   }
<Gnurdux> that goes right before:
<Gnurdux>     //draw world weapon shots
<Gnurdux> but Mr_Molez shots don't actually go that long
<Gnurdux> cause it thinks its a laser shot
<Mr_Molez> okies :D
<Gnurdux> Mr_Molez now try compilign it
<Mr_Molez> doing now
<Mr_Molez> LMAO
<Mr_Molez> THAT RULES !!
<Mr_Molez> but
<Mr_Molez> its wayyyyyy to long
<Mr_Molez> do u know of any way to make it shorter
<Gnurdux> hmm
<Gnurdux> set myInfo.lifetime
<Mr_Molez> wouldn't that alter the shots lifetime though ? people will notice
<Gnurdux> no
<Gnurdux> only in THAT part of the code
<Mr_Molez> cool
<Mr_Molez> can u give me an example
<Gnurdux>    myInfo.flagType = Flags::Laser;
<Gnurdux>    myInfo.lifetime = 0.1;
<Gnurdux>    const float cs = colorScale(myInfo.shot.pos[2], muzzleHeight);
<Mr_Molez> myInfo.lifetime doesn't exist
<Mr_Molez> nevermind :P
<Gnurdux> Mr_Molez do:
<Gnurdux>    myInfo.lifetime /= 100;
<Gnurdux> that gets it almost exactly right
<Mr_Molez> OMFG UR THE BEST PERSON EVER !
<Gnurdux> only on some servers
<Mr_Molez> Gnurdux u up for another channelge :P
<Gnurdux> uh oh
<Gnurdux> what is it?
<Mr_Molez> auto aim ;)
<Gnurdux> no way
<Mr_Molez> hehe
<Mr_Molez> i was thinking
<Mr_Molez> when u look directly at them
<Mr_Molez> bzflag makes a noise
<Gnurdux> this is all the cheat client im gonna make for you
<Gnurdux> its powerful enough
<Gnurdux> i'll make a new non-AHOD gamemode
<Mr_Molez> ok :( thnx !! :)
<Gnurdux> what gamemode
<Mr_Molez> duno
<Gnurdux> Mr_Molez think of some ideas
<Mr_Molez> Gnurdux i ghot an idea
<Gnurdux> yea/
<Mr_Molez> how about
<Mr_Molez> a gamemod where
<Mr_Molez> all red players or green players have to go to a certain zone and if they do the its counted as a flag capture
<Mr_Molez> the = then
<Gnurdux> thats AHOD Mr_Molez 
<Gnurdux> i said NON-AHOD
<Mr_Molez> nuhuh :P
<Mr_Molez> pwease
<Mr_Molez> ahod is easy to make
<Gnurdux> agh
<Gnurdux> if its so easy, you make it: P
<Mr_Molez> ok first thing
<Mr_Molez> is to get rid of flags from the bzfs code
<Gnurdux> heh
<Mr_Molez> then change the flag code into tank code
<Mr_Molez> so server thinks tanks are flags
<Gnurdux> hehe
<Gnurdux> Mr_Molez that wont work
<Mr_Molez> y not ?
<Gnurdux> cause the client originates the capture message :P
<Gnurdux> server only checks if client is telling the truth
<Gnurdux> also cause there are lots of tanks, and only 1 flag
<Mr_Molez> it doesnt matter about lots of tanks
<Gnurdux> umm yes it does
<Mr_Molez> umm it does
<Mr_Molez> ok say red team is a flag
<Mr_Molez> somehow :P
<Gnurdux> lol
<Gnurdux> you code it
<Gnurdux> or spam trepan
<Mr_Molez>   FiringInfo myInfo(*myTank, 0);
<Mr_Molez>   if (myInfo.flagType != Flags::ShockWave) {
<Mr_Molez>      if (!BZDB.isTrue(StateDatabase::BZDB_SHOTSKEEPVERTICALV))
<Mr_Molez>                 myInfo.shot.vel[2] = 0.0f;
<Mr_Molez>    myInfo.flagType = Flags::Laser;
<Mr_Molez> myInfo.lifetime /= 100;
<Mr_Molez>    const float cs = colorScale(myInfo.shot.pos[2],
<Mr_Molez>                 muzzleHeight);
<Mr_Molez>   glColor3f(0.3f * cs, 1.1f * cs, 0.1f * cs);
<Mr_Molez>    LocalShotPath myPath(myInfo);
<Mr_Molez>    myPath.radarRender();
<Mr_Molez>   }oops
<Mr_Molez> glad that wasnt in #bzflag lol
<Gnurdux> that was an accident?
<Gnurdux> heh what would have happened if it was?
<Gnurdux> http://pastebin.ca/66955
<Gnurdux> Mr_Molez im gonna say that in #bzflag
<Mr_Molez> then i would get global banned probably :P
<Gnurdux> i doubt it
<Mr_Molez> dont u dare !
<Gnurdux> jeff would say as long as you don't use public servers
<Gnurdux> its OK
<Mr_Molez> omfg u did
<Gnurdux> dont worry bout it
<Gnurdux> he won't even read it
<Mr_Molez> OMFG U IDIOT
<Gnurdux> and he will say as long as you don't cheat on public servers its OK
<Mr_Molez> who cares about him
<Mr_Molez> its other people !
<Gnurdux> Mr_Molez jeff doesn't know the fucking code
<Mr_Molez> like league owners !!
<Mr_Molez> everyone is out for me, a chance like this is gona give them what they need
<Gnurdux> see, he didn't read it
<Gnurdux> Mr_Molez its not obvious what that does
<Gnurdux> unless you actually read it
* Mr_Molez cries
<Gnurdux> see, everyone thinks i'm just a moron
<Gnurdux> look, nobody is reading i
<Gnurdux> t
<Gnurdux> they are too lazy Mr_Molez 
<Mr_Molez> bet u $20 they do
<Gnurdux> nah
<Gnurdux> Mr_Molez EVER HEARD OF DENYING IT
<Gnurdux> say I made it up, if anyone asks
<Gnurdux> and i will 'admit' it
<Mr_Molez> few no 1 noticed :D
<Gnurdux> Jeff did
<Gnurdux> <JeffM2501> technicaly molez can mod the code all he wants
<Gnurdux> lol
<Mr_Molez> grr
<Mr_Molez> dude wtf u trying to do