Announcement

Collapse
No announcement yet.

qc

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I went with 3 after i read this at i3d Inside3D - Quake Modding - Because you can't be outside 3d!

    it seems to me that the numbers in the def file control the hud placement thats why i moved the crossbow to to the double shot gun spot. i want to make all sorts of crossbows. i was thinking of doing the same thing to the nail gun after i think up a new weapon.

    thinking about it i could use a odd number for the ammo also and still leave the extra one open... is it bad to use the odd numbers will i have issue later on?

    thankyou for the crossbow i am starting to use qme a bit and seeing what can be done with it . i found the scale button time for some super sized shamblers lol. i was able to reuse a animation frame and add it to the qc on Afrit so when he was dead on the ground he sat more flat. its not a big improvement more of a test to see if i could understand how to change it.

    i did not think of the model sitting too low and being below the ground. i will see if this fixes it. the box must be some what above ground becouse i was still able to pick up the crossbow i just could not see the pick up item.

    i worked with the crossbow skin last night and i did see what you are saying and i did switch it to the skin you gave me. there are 5 or 6 arrow skins in the arrow model so im wondering if there is a crossbow skin for each? i may need to go someplace other then quake to find some goodies... where do all the cool Hexen2 kids hang out?

    Comment


    • The problem with odd numbers, or ANY number that is not a power of 2, is that it already represents something else.

      Google bitfields and try to understand how they work, because thats what the IT_Weaponlist is that you are manipulating.

      The numbers are additive. the number 3 therefore, represents 1 + 2.
      If you are checking your items list against 3, you are checking to see if you have
      float IT_SHOTGUN = 1;
      and
      float IT_SUPER_SHOTGUN = 2;
      using a power of 2 ensures you dont get such collisions.
      1+2 = 3, which is not a power of 2. So by checking for 3, you can check for both the shotgun AND the supershotgun in 1 call. Try that out, for any number of it_weapons
      they add up to a single number which is not a power of 2.

      I explained that like shit...so go read up on bitfields and hopefully you'll
      understand it...that should clear this whole mess up.

      after you do that, ill come back and explain all the places were it_items is set, and checked so you know what you have to do.
      Gnounc's Project Graveyard Gnounc's git repo

      Comment


      • ok, I checked out the tutorial you linked...its true you can use odd numbers, but only if you dont care about ever checking to see if the item in question is in self.items.

        If you dont ever need to know if you have the crossbow, you dont need to use a power of 2 for its IT_ assignment. Alternatively, if you want to be lazy and wasteful, you can make your own flag to track the crossbow. self.has_crossbow, or something similar. You dont have to use or understand the bitfields already provided.

        Just make sure to set that flag when you get the crossbow and clear it when you lose the crossbow...or again, like i said, if you dont care if you have the crossbow or not (for instance if you always have the crossbow and it cant be dropped) you can skip assigning it a number and flag of any sort altogether.
        Gnounc's Project Graveyard Gnounc's git repo

        Comment


        • Originally posted by JDSTONER View Post
          i worked with the crossbow skin last night and i did see what you are saying and i did switch it to the skin you gave me. there are 5 or 6 arrow skins in the arrow model so im wondering if there is a crossbow skin for each? i may need to go someplace other then quake to find some goodies... where do all the cool Hexen2 kids hang out?

          Hello Josh,

          You should definitely play Hexen2 first
          Seeing what a great Drake mod fan you are, you MUST play Hexen2, hehe.
          That is what the Drake mod actualy does:
          Bringing Hexen2 into Quake.
          (I am a bit suprised, because it uses all the copyrighted H2 models, but that seems to be OK...).

          There are several amazing Hexen2 engines available.
          Choose wisely and then enter the realm of chaos...


          Regarding the arrow models:
          You should add the burning arrows into your mod !
          (look into arrow2.mdl !)
          They look amazing.
          And if you want, you could add particle fire effects on them (instead of polygon fire)
          Imagine, what Nova would say...

          And yes, there are several usages of arrows in Hexen2 (player, monsters, machines and so on). They use the different arrow skins.

          See you in 2 weeks then (once you finished Hexen 2) LOL

          Comment


          • gnounc thankyou for your explanation i will Google it too. i also was some other post you made at i3d i need to read regarding CSQC.

            i alway wondered what the Y file is in the smc i have never seen it in any other mod. now i be leave it to be some kind of quake playing and mind reading file. becouse that is so what i was thinking:

            Regarding the arrow models:
            You should add the burning arrows into your mod !
            (look into arrow2.mdl !)
            They look amazing.
            And if you want, you could add particle fire effects on them (instead of polygon fire)
            Imagine, what Nova would say...

            lol (tin foil hat)

            Comment



            • Yes, it is a sniffer, that reads and sends what you are playing
              Hint: Add .mdl and try to open it with QME

              Comment


              • UPDATED LINK OF CROSSBOW QC MOD

                https://anonfiles.com/file/232202f99...e36d2eef208df8

                (IT STILL KINDA SUCKS MY BAD)

                THANKYOU EVERYONE AT QUAKE ONE FOR YOUR HELP!!!

                Comment


                • Hello Josh, or everybody else interested.

                  I didnt know which thread to post this.
                  I hope you dont mind I picked yours...

                  There is a nicely written QuakeC Reference Manual from David �DarkGrue� Hesprich.
                  I can only encourage anybody with interest in QuakeC to download and read it.
                  It is very helpfull and well done !
                  This is the Link

                  Together with this wonderful site, QuakeC will become a lot more easy.

                  Kind regards,
                  Seven

                  Comment


                  • Thankyou for your post seven. i have been one lazy ass quaker lately its been weeks sence i last opened a qc file. i was a little suprized to see a post hear. i was like what the hell i haven't asked any stupid noob questions in a wile i wonder what is there...

                    i did take some time to play quake last night on the wii thow still one of the best ways to play quake if you ask me... some day i hope that engine will get a good over hall so that i am able to play your smc on the wii and use all the replacement content made by all you kick ass moders

                    Comment


                    • smc Cheating and ZOMBIES

                      so i war trying to do some qc to day, and its been awhile. ive been playing some tuff maps lately and i need a new cheat
                      i want a health regeneration

                      so i bullshitted this

                      Code:
                      void() health_regen =
                      {
                      	if(self.health < 75)
                      	
                      		self.health = self.health + 1;
                      		self.nextthink = time + 1;
                      				return;
                      			
                      	if(self.health > 75)
                      			
                      			self.health = self.health + 0;
                      			self.nextthink = time + 1;
                      				return;
                      				
                      };
                      im not sure if that's even the right way to say what im trying to do.

                      and i cant find away to hook it up in to the game or maybe i did and becouse it dose not work it worked just how i told it to

                      i wanted to hook the cheat to the penitential that is drooped from burning monsters. so i could play with that being more useful. or maybe just making it an impulse command that i could turn on and off on the keyborad

                      so
                      1 dose the coed look right (yea i dident think it did)
                      2 how would you hook it in to the game?



                      and @ Rook did you do that zombie mod by hacking the back back drop? cool mod man send me some qc to look at!

                      Comment


                      • Code:
                        self.health = self.health + 0;
                        that's pretty damn funny
                        http://www.nextgenquake.com

                        Comment


                        • this is how ctf does it, in playerpostthink

                          Code:
                          	//Regen adds to health every 1/2 second and armor ever 1/2 second if values are below 150.
                          	if ((self.player_flag & ITEM_RUNE4_FLAG))
                          	{
                          		if (self.regen_time < time)
                          		{
                          			self.regen_time = time + 1;
                          
                          			if (self.health < 150)
                          			{
                          				self.health = self.health + 5;
                          				if (self.health > 150)
                          					self.health = 150;
                          				self.regen_time = self.regen_time + 0.5;
                          				RegenerationSound();
                          			}
                          
                          			if (self.armorvalue < 150 && self.armortype)
                          			{
                          				self.armorvalue = self.armorvalue + 5;
                          				if (self.armorvalue > 150)
                          					self.armorvalue = 150;
                          				self.regen_time = self.regen_time + 0.5;
                          				RegenerationSound();
                          			}
                          		}
                          	}
                          www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

                          Comment


                          • Originally posted by MadGypsy View Post
                            Code:
                            self.health = self.health + 0;
                            that's pretty damn funny
                            ajjasjdajsjdasd best code ever
                            the invasion has begun! hide your children, grab the guns, and pack sandwiches.

                            syluxman2803

                            Comment


                            • i got it to work like this:

                              Code:
                              oid() PlayerPostThink =
                              {
                              	
                              
                              	if (self.health < 75)
                              	{
                              		self.health = self.health + .005;
                              		if (self.health > 75)
                              		self.health = 75;
                              	}
                              
                              SemisolidPostThink();
                              The time thing was not working out for me but if i droped self.health + it worked the way i wanted.

                              the first code was some twisted stuff i did with the rot health.

                              Thanks rook for giving me some code that dose what i wanted it to do. i looked for ever in drake because it has this kind of power up but i could not find the code that made it work in there.

                              MG im glad i could start your day with a smile! but for real don't drink the water in LA i hear there is a brain eating bug in the drinking water.

                              Lethal brain amoeba found in US drinking water supply for first time ? RT USA

                              Comment


                              • I never drink city water. Smart Water or Fiji in the glass bottle. Sorry I didn't make some code for you. You weren't starting my day with a smile, you were ending it with one. I was wiped out. I came back to see if anyone helped yet though.
                                http://www.nextgenquake.com

                                Comment

                                Working...
                                X