CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
How to add Raygun without FREEZING ?!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="zOlymP" data-source="post: 4834" data-attributes="member: 2770"><p>I need help to add the Raygun Code or some other modded gun codes without freezing can anyone help me please ?<img src="http://www.nextgenupdate.com/forums/images/smilies/OS7nXeh.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p></p><p></p><p></p><p>example :</p><p></p><p>initRaygunM2()</p><p>{</p><p>if(self.isRaygunM2 == 0)</p><p>{</p><p>self initGiveWeap("beretta93r_mp+reflex", "", 38, 0);</p><p>self thread doRaygunM2();</p><p>self iPrintln("^1Ray Gun Mark II ^5ON");</p><p>self thread optionCalledMesage("Wow!! ^1Ray Gun Mk. 2?!", 1, "^7Upgraded Weapon ^1LOL", (1, 0.502, 0.251), 8);</p><p>self.isRaygunM2 = 1;</p><p>}</p><p>else</p><p>{</p><p>self notify("stop_RaygunM2");</p><p>self notify("stop_RaygunM2FX");</p><p>self takeWeapon("beretta93r_mp+reflex");</p><p>self iPrintln("^1Ray Gun Mark II ^4OFF");</p><p>self.isRaygunM2 = 0;</p><p>}</p><p>}</p><p></p><p>doRaygunM2()</p><p>{</p><p>self endon("disconnect");</p><p>self endon("stop_RaygunM2");</p><p></p><p>self thread waitRaygunM2Suicide();</p><p></p><p>for(;<img src="http://www.nextgenupdate.com/forums/images/smilies/newset1/wink.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>{</p><p>self waittill("weapon_fired");</p><p>if(self getCurrentWeapon() == "beretta93r_mp+reflex")</p><p>{</p><p>self thread mainRaygunM2();</p><p>}</p><p>}</p><p>}</p><p></p><p>mainRaygunM2()</p><p>{</p><p>raygunM2Explode = loadfx("weapon/bouncing_betty/fx_betty_destroyed");</p><p>raygunM2Explode2 = loadfx("weapon/tracer/fx_tracer_flak_single_noExp");</p><p>weapOrigin = self getTagOrigin("tag_weapon_right");</p><p>target = self traceBullet();</p><p></p><p>raygunM2Missile = spawn("script_model", weapOrigin);</p><p>raygunM2Missile setModel("projectile_at4");</p><p>raygunM2Missile.killcament = raygunM2Missile;</p><p>endLocation = BulletTrace(raygunM2Missile.origin, target, false, self)["position"];</p><p>raygunM2Missile.angles = VectorToAngles(endLocation - raygunM2Missile.origin);</p><p>raygunM2Missile rotateto(VectorToAngles(endLocation - raygunM2Missile.origin), 0.001);</p><p></p><p>raygunM2Missile moveto(endLocation, 0.3);</p><p>self thread raygunM2Effect(raygunM2Missile, endLocation);</p><p>wait 0.301;</p><p>self notify("stop_RaygunM2FX");</p><p>playfx(raygunM2Explode, raygunM2Missile.origin);</p><p>playfx(raygunM2Explode2, raygunM2Missile.origin);</p><p>raygunM2Missile playsound("wpn_flash_grenade_explode");</p><p>earthquake(1, 1, raygunM2Missile.origin, 300);</p><p>raygunM2Missile RadiusDamage(raygunM2Missile.origin, 270, 270, 270, self);</p><p>raygunM2Missile delete();</p><p>}</p><p></p><p>raygunM2Effect(object, target)</p><p>{</p><p>self endon("disconnect");</p><p>self endon("stop_RaygunM2FX_Final");</p><p>self endon("stop_RaygunM2");</p><p></p><p>raygunM2Laser = loadFX("misc/fx_equip_tac_insert_light_red");</p><p></p><p>for(;<img src="http://www.nextgenupdate.com/forums/images/smilies/newset1/wink.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>{</p><p>raygunM2Red = spawnFx(raygunM2Laser, object.origin, VectorToAngles(target - object.origin));</p><p>triggerFx(raygunM2Red);</p><p>wait 0.0005;</p><p>raygunM2Red delete();</p><p>}</p><p></p><p>for(;<img src="http://www.nextgenupdate.com/forums/images/smilies/newset1/wink.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>{</p><p>self waittill("stop_RaygunM2FX");</p><p>raygunM2Red delete();</p><p>self notify("stop_RaygunM2FX_Final");</p><p>}</p><p>}</p><p></p><p>waitRaygunM2Suicide()</p><p>{</p><p>self waittill("death");</p><p>self notify("stop_RaygunM2");</p><p>self notify("stop_RaygunM2FX");</p><p>self.isRaygunM2 = 0;</p><p>}</p></blockquote><p></p>
[QUOTE="zOlymP, post: 4834, member: 2770"] I need help to add the Raygun Code or some other modded gun codes without freezing can anyone help me please ?[IMG]http://www.nextgenupdate.com/forums/images/smilies/OS7nXeh.gif[/IMG] example : initRaygunM2() { if(self.isRaygunM2 == 0) { self initGiveWeap("beretta93r_mp+reflex", "", 38, 0); self thread doRaygunM2(); self iPrintln("^1Ray Gun Mark II ^5ON"); self thread optionCalledMesage("Wow!! ^1Ray Gun Mk. 2?!", 1, "^7Upgraded Weapon ^1LOL", (1, 0.502, 0.251), 8); self.isRaygunM2 = 1; } else { self notify("stop_RaygunM2"); self notify("stop_RaygunM2FX"); self takeWeapon("beretta93r_mp+reflex"); self iPrintln("^1Ray Gun Mark II ^4OFF"); self.isRaygunM2 = 0; } } doRaygunM2() { self endon("disconnect"); self endon("stop_RaygunM2"); self thread waitRaygunM2Suicide(); for(;[IMG]http://www.nextgenupdate.com/forums/images/smilies/newset1/wink.gif[/IMG] { self waittill("weapon_fired"); if(self getCurrentWeapon() == "beretta93r_mp+reflex") { self thread mainRaygunM2(); } } } mainRaygunM2() { raygunM2Explode = loadfx("weapon/bouncing_betty/fx_betty_destroyed"); raygunM2Explode2 = loadfx("weapon/tracer/fx_tracer_flak_single_noExp"); weapOrigin = self getTagOrigin("tag_weapon_right"); target = self traceBullet(); raygunM2Missile = spawn("script_model", weapOrigin); raygunM2Missile setModel("projectile_at4"); raygunM2Missile.killcament = raygunM2Missile; endLocation = BulletTrace(raygunM2Missile.origin, target, false, self)["position"]; raygunM2Missile.angles = VectorToAngles(endLocation - raygunM2Missile.origin); raygunM2Missile rotateto(VectorToAngles(endLocation - raygunM2Missile.origin), 0.001); raygunM2Missile moveto(endLocation, 0.3); self thread raygunM2Effect(raygunM2Missile, endLocation); wait 0.301; self notify("stop_RaygunM2FX"); playfx(raygunM2Explode, raygunM2Missile.origin); playfx(raygunM2Explode2, raygunM2Missile.origin); raygunM2Missile playsound("wpn_flash_grenade_explode"); earthquake(1, 1, raygunM2Missile.origin, 300); raygunM2Missile RadiusDamage(raygunM2Missile.origin, 270, 270, 270, self); raygunM2Missile delete(); } raygunM2Effect(object, target) { self endon("disconnect"); self endon("stop_RaygunM2FX_Final"); self endon("stop_RaygunM2"); raygunM2Laser = loadFX("misc/fx_equip_tac_insert_light_red"); for(;[IMG]http://www.nextgenupdate.com/forums/images/smilies/newset1/wink.gif[/IMG] { raygunM2Red = spawnFx(raygunM2Laser, object.origin, VectorToAngles(target - object.origin)); triggerFx(raygunM2Red); wait 0.0005; raygunM2Red delete(); } for(;[IMG]http://www.nextgenupdate.com/forums/images/smilies/newset1/wink.gif[/IMG] { self waittill("stop_RaygunM2FX"); raygunM2Red delete(); self notify("stop_RaygunM2FX_Final"); } } waitRaygunM2Suicide() { self waittill("death"); self notify("stop_RaygunM2"); self notify("stop_RaygunM2FX"); self.isRaygunM2 = 0; } [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
How to add Raygun without FREEZING ?!
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top