SHOW:
|
|
- or go back to the newest paste.
1 | SWEP.DrawWeaponInfoBox = true | |
2 | SWEP.Author = "Ice Tea" | |
3 | SWEP.Contact = "Steam Profile" | |
4 | SWEP.Purpose = "Rape Dem' Bitches... or guys" | |
5 | SWEP.Instructions = "Mouse1: Rape\nMouse2: Taunt\nHave Fun!" | |
6 | ||
7 | SWEP.Category = "Ice Tea" | |
8 | SWEP.Spawnable = true | |
9 | SWEP.AdminSpawnable = true | |
10 | ||
11 | SWEP.IconLetter = "C" | |
12 | ||
13 | SWEP.Primary.Sound = Sound( "vo/novaprospekt/al_holdon.wav" ) | |
14 | SWEP.Primary.Recoil = 0 | |
15 | SWEP.Primary.Damage = 0 | |
16 | SWEP.Primary.NumShots = -1 | |
17 | SWEP.Primary.Delay = 3 | |
18 | SWEP.Primary.Distance = 75 | |
19 | ||
20 | SWEP.Primary.ClipSize = -1 | |
21 | SWEP.Primary.DefaultClip = -1 | |
22 | SWEP.Primary.Automatic = false | |
23 | SWEP.Primary.Ammo = "none" | |
24 | ||
25 | SWEP.Secondary.ClipSize = -1 | |
26 | SWEP.Secondary.DefaultClip = -1 | |
27 | SWEP.Secondary.Automatic = false | |
28 | SWEP.Secondary.Ammo = "none" | |
29 | SWEP.Secondary.Delay = 3 | |
30 | ||
31 | SWEP.ViewModel = Model("models/weapons/v_hands.mdl") | |
32 | --SWEP.WorldModel = "" | |
33 | ||
34 | local InProgress = false | |
35 | SWEP.RapeLength = 20 | |
36 | SWEP.PRIMARYPW = "RAPEDEMBITCHEZ1" | |
37 | SWEP.SECONDARYPW = "RAPEDEMBITCHEZ2" | |
38 | ||
39 | SWEP.SoundDelay = 1.5 | |
40 | ||
41 | ||
42 | local sounds2 = { | |
43 | "bot/where_are_you_hiding.wav", | |
44 | } | |
45 | ||
46 | ||
47 | ||
48 | /*--------------------------------------------------------- | |
49 | ---------------------------------------------------------*/ | |
50 | function SWEP:Initialize() | |
51 | --self:SetWeaponHoldType( self.HoldType ) | |
52 | end | |
53 | ||
54 | function SWEP:DrawWorldModel() | |
55 | end | |
56 | ||
57 | ||
58 | /*--------------------------------------------------------- | |
59 | Reload does nothing | |
60 | ---------------------------------------------------------*/ | |
61 | function SWEP:Reload() | |
62 | end | |
63 | ||
64 | ||
65 | /*--------------------------------------------------------- | |
66 | Think | |
67 | ---------------------------------------------------------*/ | |
68 | function SWEP:Think() | |
69 | end | |
70 | ||
71 | /*--------------------------------------------------------- | |
72 | PrimaryAttack | |
73 | ---------------------------------------------------------*/ | |
74 | function SWEP:PrimaryAttack() | |
75 | ||
76 | local tr = self.Owner:GetEyeTrace().Entity | |
77 | if not tr:IsValid() then return end | |
78 | if tr:IsNPC() or tr:IsPlayer() or ( tr:GetClass() == 'prop_ragdoll' ) then else return end | |
79 | ||
80 | - | if(nextattack and (nextattack < CurTime())) then return end |
80 | + | if(nextattack and (nextattack > CurTime())) then return end |
81 | if tr:GetPos():Distance( self.Owner:GetPos() ) > self.Primary.Distance then return end | |
82 | ||
83 | if SERVER then | |
84 | self.Owner:EmitSound( self.Primary.Sound ) | |
85 | end | |
86 | ||
87 | RunConsoleCommand( self.PRIMARYPW ) | |
88 | local nextattack = CurTime() + 300 | |
89 | end | |
90 | ||
91 | SWEP.NextSecondaryAttack = 0 | |
92 | /*--------------------------------------------------------- | |
93 | SecondaryAttack | |
94 | ---------------------------------------------------------*/ | |
95 | function SWEP:SecondaryAttack() | |
96 | ||
97 | if ( self.NextSecondaryAttack > CurTime() ) then return end | |
98 | ||
99 | self.NextSecondaryAttack = CurTime() + self.Secondary.Delay | |
100 | ||
101 | if SERVER then | |
102 | self.Owner:EmitSound( sounds2[math.random(#sounds2)] ) | |
103 | end | |
104 | ||
105 | end | |
106 | ||
107 | ||
108 | ||
109 | /*--------------------------------------------------------- | |
110 | Checks the objects before any action is taken | |
111 | This is to make sure that the entities haven't been removed | |
112 | --------------------------------------------------------- | |
113 | function SWEP:DrawWeaponSelection( x, y, wide, tall, alpha ) | |
114 | ||
115 | draw.SimpleText( self.IconLetter, "CSSelectIcons", x + wide/2, y + tall*0.2, Color( 255, 210, 0, 255 ), TEXT_ALIGN_CENTER ) | |
116 | ||
117 | // try to fool them into thinking they're playing a Tony Hawks game | |
118 | draw.SimpleText( self.IconLetter, "CSSelectIcons", x + wide/2 + math.Rand(-4, 4), y + tall*0.2+ math.Rand(-14, 14), Color( 255, 210, 0, math.Rand(10, 120) ), TEXT_ALIGN_CENTER ) | |
119 | draw.SimpleText( self.IconLetter, "CSSelectIcons", x + wide/2 + math.Rand(-4, 4), y + tall*0.2+ math.Rand(-9, 9), Color( 255, 210, 0, math.Rand(10, 120) ), TEXT_ALIGN_CENTER ) | |
120 | ||
121 | end*/ | |
122 | ||
123 | ||
124 | /*--------------------------------------------------------- | |
125 | DrawHUD | |
126 | ||
127 | Just a rough mock up showing how to draw your own crosshair. | |
128 | ||
129 | ---------------------------------------------------------*/ | |
130 | function SWEP:DrawHUD() | |
131 | ||
132 | ||
133 | ||
134 | end |