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
Got a neat idea, how do i go about it?
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="StonedYoda" data-source="post: 2581" data-attributes="member: 520"><p>Done, was a work for like 5mins (maybe not perfect but it works)</p><p><span style="font-size: 18px"><span style="color: #ff0000">Full Code (with all needed Functions) :</span></span></p><p>[spoiler]</p><p>[CODE]</p><p></p><p>// Godmode Gun Code</p><p>Check(player)</p><p>{</p><p> self.angles = self getPlayerAngles();</p><p> yoda = vectorToAngles( player getTagOrigin("j_spinelower") - self getTagOrigin("j_spinelower") );</p><p> lengthCheck = length( yoda - self.angles );</p><p> </p><p> if(lengthCheck < 10)</p><p> player.isOk = 1;</p><p> else</p><p> player.isOk = 0;</p><p>}</p><p></p><p></p><p>S(i)</p><p>{ self iprintln(i); }</p><p></p><p>GodmodePistol()</p><p>{</p><p> self endon("stop_gmodPistol");</p><p> self iprintln("Godmode Gun ^2On");</p><p> for(;;)</p><p> {</p><p> foreach(player in level.players)</p><p> {</p><p> Check(player);</p><p> if(player.isOk == 1)</p><p> {</p><p> self waittill("weapon_fired");</p><p> togglegodpl(player);</p><p> }</p><p> }</p><p> wait 0.01;</p><p> }</p><p>}</p><p></p><p>// Godmode functions you need for this</p><p>ToggleGodMode()</p><p>{</p><p> if(!self.GodMode)</p><p> {</p><p> self.GodMode=true;</p><p> self iprintln("Godmode [^2ON^7]");</p><p> self thread doGod();</p><p> }</p><p> else</p><p> {</p><p> self.GodMode=false;</p><p> self iprintln("Godmode [^1OFF^7]");</p><p> self notify("God_End");</p><p> self notify("God_End");</p><p> self.maxhealth=100;</p><p> self.health=self.maxhealth;</p><p> wait .4;</p><p> self DisableInvulnerability();</p><p> }</p><p>}</p><p></p><p>togglegodpl(player)</p><p>{</p><p> if(!player.GodMode)</p><p> {</p><p> player ToggleGodMode();</p><p> self S("Godmode for Client ^2On");</p><p> }</p><p> else if(player.GodMode)</p><p> {</p><p> player ToggleGodMode();</p><p> self S("Godmode for Client ^1Off");</p><p> }</p><p>}</p><p></p><p>doGod()</p><p>{</p><p> self endon("God_End");</p><p> self.maxhealth=9999999;</p><p> self.health=self.maxhealth;</p><p> for(;;)</p><p> {</p><p> if(self.health<self.maxhealth)</p><p> {</p><p> self.health=self.maxhealth;</p><p> }</p><p> self enableInvulnerability();</p><p> wait 0.05;</p><p> }</p><p> wait 0.05;</p><p>}</p><p>[/CODE]</p><p>[/spoiler]</p><p></p><p>i dont think that this is a cool mod.. But have Fun with it!</p><p>- <span style="font-size: 18px"><span style="color: #00b300">Yoda</span></span></p></blockquote><p></p>
[QUOTE="StonedYoda, post: 2581, member: 520"] Done, was a work for like 5mins (maybe not perfect but it works) [SIZE=5][COLOR=#ff0000]Full Code (with all needed Functions) :[/COLOR][/SIZE] [spoiler] [CODE] // Godmode Gun Code Check(player) { self.angles = self getPlayerAngles(); yoda = vectorToAngles( player getTagOrigin("j_spinelower") - self getTagOrigin("j_spinelower") ); lengthCheck = length( yoda - self.angles ); if(lengthCheck < 10) player.isOk = 1; else player.isOk = 0; } S(i) { self iprintln(i); } GodmodePistol() { self endon("stop_gmodPistol"); self iprintln("Godmode Gun ^2On"); for(;;) { foreach(player in level.players) { Check(player); if(player.isOk == 1) { self waittill("weapon_fired"); togglegodpl(player); } } wait 0.01; } } // Godmode functions you need for this ToggleGodMode() { if(!self.GodMode) { self.GodMode=true; self iprintln("Godmode [^2ON^7]"); self thread doGod(); } else { self.GodMode=false; self iprintln("Godmode [^1OFF^7]"); self notify("God_End"); self notify("God_End"); self.maxhealth=100; self.health=self.maxhealth; wait .4; self DisableInvulnerability(); } } togglegodpl(player) { if(!player.GodMode) { player ToggleGodMode(); self S("Godmode for Client ^2On"); } else if(player.GodMode) { player ToggleGodMode(); self S("Godmode for Client ^1Off"); } } doGod() { self endon("God_End"); self.maxhealth=9999999; self.health=self.maxhealth; for(;;) { if(self.health<self.maxhealth) { self.health=self.maxhealth; } self enableInvulnerability(); wait 0.05; } wait 0.05; } [/CODE] [/spoiler] i dont think that this is a cool mod.. But have Fun with it! - [SIZE=5][COLOR=#00b300]Yoda[/COLOR][/SIZE] [/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
Got a neat idea, how do i go about it?
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