Magnum

InsideQC tutorials kleskby 0 550
Author: Timm 'Mr?' Stokke
Source: https://www.insideqc.com/qctut/lesson-3.shtml

Step 1

Ok. This hack is done in weapons.qc, so open that file right away. When we're done, you're gonna have one hell of a magnum! You'll have to mess around here a lot for you're self, coz there are so many options.. But at least, i'll help you getting started :) Now, search weapons.qc for the text shown under.

Step 2

What you do now, is to mess around with the different numbers, like i've done in the sample under. After that, save it and compile it.. (Tip: Don't make it too powerfull, if you are gonna use it on a server!)

/*
================
W_FireShotgun
================
*/
void() W_FireShotgun =
{
        local vector dir;

        sound (self, CHAN_WEAPON, "weapons/guncock.wav", 1, ATTN_NORM); // The SG sound

        self.punchangle_x = -2;

        self.currentammo = self.ammo_shells = self.ammo_shells - 1; //How much a shot needs
        dir = aim (self, 1000);         //How good to aim. For the magnum, i suggest 10-100
        FireBullets (20, dir, '0.04 0.04 0');   //20=20 bullets. 0.04= width\height
                                                //Good for da magnum is 0.001
};


Tags: tutorial, quakec, qc, insideqc, weapon

Comments


captcha


No comments yet. Be the first!
Owned by kleskby#1837
Close

You have no new notifications.

SHOUTBOX
Open chat to load…
Log in to chat