Announcement

Collapse
No announcement yet.

Silly Instagib Mod

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

  • Silly Instagib Mod

    Just a bit of fun that I've been playing with

    What it does:

    Removes all weapons, ammo, armour and quad damage (leaves the other powerups, keys etc).
    Equips you with the weapon/ammo that you specify in defs.qc and gives plenty of ammo.
    The monsters also have the same, insta firing strength (so do nail traps etc).
    Should work in DM and Coop, although I've not tried DM with anyone (I can set up a test server if anyone feels up to testing).

    At set times (+ a small random amount) it switches to Berserker Mode, where you get 15 seconds with an axe.

    It is massively overpowered

    Zip or tar.gz available:

    Index of /quake-mods

    Edit* Test DM server setup at r0t.co.uk:26666
    By default it's set to shotgun, but you can edit defs.qc and recompile.

    Bug* Gun animation is sometimes wrong after a berserk mode.
    Last edited by slackhead; 09-13-2014, 11:14 PM.

    -r0t.uk- cOOp - Mapvote - r0t.uk:26001
    -r0t.uk- DM - Mapvote - r0t.uk:26000

  • #2
    pick any cax mod hosting server, type instagib in console

    gg
    Want to get into playing Quake again? Click here for the Multiplayer-Startup kit! laissez bon temps rouler!

    Comment


    • #3
      Originally posted by Mindf!3ldzX View Post
      pick any cax mod hosting server, type instagib in console

      gg
      On New connection yet?

      Comment


      • #4
        Nothing wrong with more choice

        -r0t.uk- cOOp - Mapvote - r0t.uk:26001
        -r0t.uk- DM - Mapvote - r0t.uk:26000

        Comment


        • #5
          Originally posted by wicked_lord View Post
          On New connection yet?
          nope,2-3 days.
          Want to get into playing Quake again? Click here for the Multiplayer-Startup kit! laissez bon temps rouler!

          Comment


          • #6
            @slackhead

            A few problems with the code. But not a big deal technically if this is only for multiplayer.

            The way you applied damage of take = 99999; will apply to any monster that uses the T_Damage function and Firebullet function. Basically the grunt. He can gib you with one shot. Also, because you didn't make an exception for doors and triggers with health it will crash the game once you fire on them using the shotgun. if you still want to do it this way just make sure to make an exception for when you hit shootable doors. Also you could just make a totally new weapon and use it in place of IT_EXTRA_WEAPON in defs.qc and then add it to your rotation or just give the player this weapon instead only in deathmatch or perhaps you could just make your own game type like deathmatch 2 or deathmatch 3 so when you have that deathmatch 3 cvar set on the server it will start players with the new weapon.

            Also, if you want to use the shotgun for example, I'd advise not using the built in FireBullets but instead create a new one called FireBullets2 like this one below:

            Code:
            void(float shotcount, vector dir, vector spread) FireBullets2 =
            {
            	local	vector direction;
            	local	vector	src;
            	local   vector vel, org;
            	
            	makevectors(self.v_angle);
            
            	src = self.origin + v_forward*10;
            	src_z = self.absmin_z + self.size_z * 0.7;
            
            	ClearMultiDamage ();
            	while (shotcount > 0)
            	{
            		direction = dir + crandom()*spread_x*v_right + crandom()*spread_y*v_up;
            
            		traceline (src, src + direction*2048, FALSE, self);
            		if (trace_fraction != 1.0)
            		{
            		if (trace_ent.movetype == MOVETYPE_PUSH || trace_ent.movetype == MOVETYPE_NONE) [COLOR="Lime"]//In case it is a shootable door or trigger use default functions to make damage.[/COLOR]
            		    {
            			TraceAttack (20, direction); [COLOR="lime"]//Slightly increased this number because you are only using 1 shotcount[/COLOR]
            
            		    //shotcount = shotcount - 1;
            		    ApplyMultiDamage ();
            	        }
            	    else  [COLOR="Lime"]//Everything below will trace the attack, and if it hits an enemy apply T_Damage of 1000000 :)[/COLOR] 
            		{
            		vel = normalize(dir + v_up*crandom() + v_right*crandom());
            	    vel = vel + 2*trace_plane_normal;
            	    vel = vel * 200;
            
            	    org = trace_endpos - dir*4;
            
            	       if (trace_ent.takedamage)
            	       {
            		    SpawnBlood (org, vel*0.2, 20);
            		    T_Damage (trace_ent, self, self, 1000000);
            	       }
            
            	       else
            	       {
            		   WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
            		   WriteByte (MSG_BROADCAST, TE_GUNSHOT);
            		   WriteCoord (MSG_BROADCAST, org_x);
            		   WriteCoord (MSG_BROADCAST, org_y);
            		   WriteCoord (MSG_BROADCAST, org_z);
            	       }
            	
            	    }
            
            		shotcount = shotcount - 1;
            	    }
            	}	
            };
            This code will bypass using the regular multidamage and trackattack functions and just apply the damage directly to the target. An exception is made here that will use the default functions for shootable triggers and doors. So the game will not crash!

            This way no need to make any changes to the default functions like T_Damage, etc.


            Also not sure what you are trying to do with the ammo, but if you just wanted to make it infinite ammo just simply do this in W_FireShotgun:

            Code:
            void() W_FireShotgun =
            {
            	local vector dir;
            
            	sound (self, CHAN_WEAPON, "weapons/gun****.wav", 1, ATTN_NORM);	
            
            	self.punchangle_x = -4;
            	
            	self.currentammo = self.ammo_shells = self.ammo_shells [COLOR="Red"]- 1[/COLOR];  [COLOR="Lime"]//Just simply remove the red and you have infinite ammo :) [/COLOR]
            	dir = aim (self, 100000);
            	FireBullets2 (1, dir, '0 0 0'); [COLOR="lime"]//This is where I tell it to use the new function for firing. :) [/COLOR]
            };
            Otherwise really enjoyed gibbing. Thx
            Last edited by PrimalLove; 09-13-2014, 03:14 AM.

            Comment


            • #7
              Thanks, I will put those in

              -r0t.uk- cOOp - Mapvote - r0t.uk:26001
              -r0t.uk- DM - Mapvote - r0t.uk:26000

              Comment


              • #8
                Also I like this little nugget function Much easier than making exceptions for the different items and weapons in items.qc. Nice.


                Code:
                void() remove_items =
                {
                    local string classes[25];
                    local float i;
                
                    classes[0] = "item_health";
                    classes[1] = "rotten";
                    classes[2] = "megahealth";
                    classes[3] = "item_armor1";
                    classes[4] = "item_armor2";
                    classes[5] = "item_armorInv";
                    classes[6] = "weapon_nailgun";
                    classes[7] = "weapon_supernailgun";
                    classes[8] = "weapon_supershotgun";
                    classes[9] = "weapon_rocketlauncher";
                    classes[10] = "weapon_grenadelauncher";
                    classes[11] = "weapon_lightning";
                    classes[12] = "item_shells";
                    classes[13] = "item_nails";
                    classes[14] = "item_rockets";
                    classes[15] = "item_cells";
                    classes[16] = "item_artifact_super_damage";
                    classes[17] = "item_spikes";
                
                    for (i=0; i<25; i+=1)
                    {
                        other = find (world, classname, classes[i]);
                
                        while (other != world && classes[i] != "")
                        {
                            remove(other);
                            other = find (other, classname, classes[i]);
                        }
                    }
                };
                I like it. This only works with the new fteqcc right? I'll have to play around with this!

                Comment


                • #9
                  Originally posted by PrimalLove View Post
                  This only works with the new fteqcc right? I'll have to play around with this!
                  I think fteqcc is the only one that supports arrays? Might be wrong though. It certainly makes the mapvote much easier.

                  -r0t.uk- cOOp - Mapvote - r0t.uk:26001
                  -r0t.uk- DM - Mapvote - r0t.uk:26000

                  Comment


                  • #10
                    @slackhead, not sure what the deal is with your server's, I tried to connect to both port's using ProQuake and obviously i could not connect. I then tried DarkPlaces and i was able to connect but for only about 5 second's then i would automatically get disconnected. This happened on both port's and it give's me no error's or reason's why I get disconnected.

                    Comment


                    • #11
                      Weird. I don't know why. Other people have been playing on them so I can't say.

                      I thought that using the quake protocol allowed other quakes like proquake to join?

                      -r0t.uk- cOOp - Mapvote - r0t.uk:26001
                      -r0t.uk- DM - Mapvote - r0t.uk:26000

                      Comment


                      • #12
                        Testing shooting switched etc and still crashing. I had to change these lines in combat.qc:

                        Code:
                         95         if (self.classname == "door")
                         96             self.th_pain (attacker, 1);
                         97         else
                         98             self.th_die();
                         99 
                        100         self = oself;

                        -r0t.uk- cOOp - Mapvote - r0t.uk:26001
                        -r0t.uk- DM - Mapvote - r0t.uk:26000

                        Comment


                        • #13
                          hmm i only see th_pain used for secret doors...

                          I dont think, that a call to a func like that can carry a parameter.

                          example:

                          self.think = foo(blah,blah);


                          Edit:

                          wait it's still early in the morning.... i was thinking of somethng else..

                          is this where you're changing?
                          Code:
                          	oldself = self;
                          	self = targ;
                          	if (self.th_pain)
                          	{
                          		self.th_pain (attacker, take);
                          	}
                          	self = oldself;
                          Last edited by R00k; 09-13-2014, 10:03 AM.
                          www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

                          Comment


                          • #14
                            Originally posted by wicked_lord View Post
                            @slackhead, not sure what the deal is with your server's, I tried to connect to both port's using ProQuake and obviously i could not connect. I then tried DarkPlaces and i was able to connect but for only about 5 second's then i would automatically get disconnected. This happened on both port's and it give's me no error's or reason's why I get disconnected.
                            just to check this out, I just tried connecting from England and had exactly the same experience.
                            Using proquake to connect to the Deathmatch server...
                            Code:
                            Quake Error
                            SZ_GetSpace:Overflow without allowoverflow set
                            Using proquake to connect to the Coop server...
                            Code:
                            Quake Error
                            SZ_GetSpace:Overflow without allowoverflow set
                            Using Darkplaces to connect to the Deathmatch server = Disconnection after 5-10 seconds
                            Using Darkplaces to connect to the Coop server = Disconnection after 5-10 seconds

                            I currently get no problems connecting to other servers but I hope this helps

                            Monty
                            Mr.Burns
                            "Helping to keep this community friendly, helpful, and clean of spammers since 2006"
                            WWW: Quake Terminus , QuakeVoid You Tube: QuakeVoid
                            Servers: Quake.shmack.net, damage.servequake.com

                            News: JCR's excellent ctsj_jcr map is being ported to OOT

                            Comment


                            • #15
                              Seems like something is being sent to the client in large amounts, and EVERY frame, thus flooding the client.
                              www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

                              Comment

                              Working...
                              X