Post: Release: EliteMossy's Forge Mod
12-31-2010, 02:57 PM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({}); Here is my Forge Mod that some people asked for, so i am releasing the code for it.

Remember to replace the self.MenuOpen with your check if the Menu is open

    
ForgeMode(){
if(self.Forge){
self notify("StopForge");
self.Forge=0;
self iprintln("Forge Mode Disabled");
}else{
self.Forge=1;
self iprintln("Forge Mode Enabled");
self thread PickupCrate();
self thread SpawnCrate();
self thread maps\mp\gametypes\_hud_message::hintMessage("Press [{+actionslot 2}] to Spawn a Crate");
wait 5;
self thread maps\mp\gametypes\_hud_message::hintMessage("Press [{+usereload}] to Move and Drop a Crate");
}}

SpawnCrate(){
self endon("death");
self endon("StopForge");
for(;Winky Winky{
self waittill("dpad_down");
if(!self.MenuOpen){
if(self.ugp>0){
vec=anglestoforward(self getPlayerAngles());
end=(vec[0]*200,vec[1]*200,vec[2]*200);
L=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+end,0,self)["position"];
c=spawn("script_model",L+(0,0,20));
c CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
c setModel("com_plasticcase_beige_big");
c PhysicsLaunchServer((0,0,0),(0,0,0));
c.angles=self.angles+(0,90,0);
c.health=250;
self thread crateManageHealth(c);
self.ugp--;
}}}}

crateManageHealth(c){
rand=randomint(99999);
self endon("CrateDestroyed"+rand);
for(;Winky Winky{
c setcandamage(true);
c.team=self.team;
c.owner=self.owner;
c.pers["team"]=self.team;
if(c.health<0){
level.chopper_fx["smoke"]["trail"]=loadfx("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"],c.origin);
c delete();
self notify("CrateDestroyed"+rand);
}
wait 0.3;
}}

PickupCrate(){
self endon("death");
self endon("StopForge");
for(;Winky Winky{
self waittill("button_square");
if(!self.MenuOpen){
vec=anglestoforward(self getPlayerAngles());
end=(vec[0]*100,vec[1]*100,vec[2]*100);
entity=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+(vec[0]*100,vec[1]*100,vec[2]*100),0,self)["entity"];
if(isdefined(entity.model)){
self thread MoveCrate(entity);
self waittill("button_square");{
self.moveSpeedScaler=1;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale("primary");
}}}}}

MoveCrate(entity){
self endon("button_square");
for(;Winky Winky{
entity.angles=self.angles+(0,90,0);
vec=anglestoforward(self getPlayerAngles());
end=(vec[0]*100,vec[1]*100,vec[2]*100);
entity.origin=(self gettagorigin("tag_eye")+end);
self.moveSpeedScaler=0.5;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale("primary");
wait 0.05;
}}



The code is out of my patch, but i removed some of my custom Text routines (as these are private atm).

Let me know if you like it Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 14 users say thank you to EliteMossy for this useful post:

_StAtEaMiNd_, Arvindian, BuC-ShoTz, CleanMODSHD, Codi360, CraZoY, Dreamcather, Fifa97, FrOoTLoOpZ, Janiboy, MW2CptPrize, Mw2Freak13, RaverBoy, Shaarpy
02-02-2011, 01:10 PM #29
tylerallmighty
Human After All
Originally posted by yukuku View Post
is this the one that lets you pick up people ?


Yeah.
****ing 10 characters. :/
02-02-2011, 07:21 PM #30
Okami
Known As Yukuku
Originally posted by bananaman
Yeah.
****ing 10 characters. :/


really wow i have lots of fun with it on waw lol
02-02-2011, 07:23 PM #31
tylerallmighty
Human After All
Originally posted by yukuku View Post
really wow i have lots of fun with it on waw lol

I know! Guys are like "whA Inn TeH heLL?!?!" when you pick them up.
02-02-2011, 07:28 PM #32
Okami
Known As Yukuku
Originally posted by bananaman
I know! Guys are like "whA Inn TeH heLL?!?!" when you pick them up.


yea lol then i toss them in the pit of doom
02-02-2011, 07:30 PM #33
Xanadu
Banned
Originally posted by TheEliteMossy View Post
Here is my Forge Mod that some people asked for, so i am releasing the code for it.

Remember to replace the self.MenuOpen with your check if the Menu is open

    
ForgeMode(){
if(self.Forge){
self notify("StopForge");
self.Forge=0;
self iprintln("Forge Mode Disabled");
}else{
self.Forge=1;
self iprintln("Forge Mode Enabled");
self thread PickupCrate();
self thread SpawnCrate();
self thread maps\mp\gametypes\_hud_message::hintMessage("Press [{+actionslot 2}] to Spawn a Crate");
wait 5;
self thread maps\mp\gametypes\_hud_message::hintMessage("Press [{+usereload}] to Move and Drop a Crate");
}}

SpawnCrate(){
self endon("death");
self endon("StopForge");
for(;Winky Winky{
self waittill("dpad_down");
if(!self.MenuOpen){
if(self.ugp>0){
vec=anglestoforward(self getPlayerAngles());
end=(vec[0]*200,vec[1]*200,vec[2]*200);
L=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+end,0,self)["position"];
c=spawn("script_model",L+(0,0,20));
c CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
c setModel("com_plasticcase_beige_big");
c PhysicsLaunchServer((0,0,0),(0,0,0));
c.angles=self.angles+(0,90,0);
c.health=250;
self thread crateManageHealth(c);
self.ugp--;
}}}}

crateManageHealth(c){
rand=randomint(99999);
self endon("CrateDestroyed"+rand);
for(;Winky Winky{
c setcandamage(true);
c.team=self.team;
c.owner=self.owner;
c.pers["team"]=self.team;
if(c.health<0){
level.chopper_fx["smoke"]["trail"]=loadfx("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"],c.origin);
c delete();
self notify("CrateDestroyed"+rand);
}
wait 0.3;
}}

PickupCrate(){
self endon("death");
self endon("StopForge");
for(;Winky Winky{
self waittill("button_square");
if(!self.MenuOpen){
vec=anglestoforward(self getPlayerAngles());
end=(vec[0]*100,vec[1]*100,vec[2]*100);
entity=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+(vec[0]*100,vec[1]*100,vec[2]*100),0,self)["entity"];
if(isdefined(entity.model)){
self thread MoveCrate(entity);
self waittill("button_square");{
self.moveSpeedScaler=1;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale("primary");
}}}}}

MoveCrate(entity){
self endon("button_square");
for(;Winky Winky{
entity.angles=self.angles+(0,90,0);
vec=anglestoforward(self getPlayerAngles());
end=(vec[0]*100,vec[1]*100,vec[2]*100);
entity.origin=(self gettagorigin("tag_eye")+end);
self.moveSpeedScaler=0.5;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale("primary");
wait 0.05;
}}



The code is out of my patch, but i removed some of my custom Text routines (as these are private atm).

Let me know if you like it Smile


do u know if there will be a forge mode on mw2 to where u can pick up the people like waw lobbys?
02-02-2011, 07:31 PM #34
tylerallmighty
Human After All
Originally posted by yukuku View Post
yea lol then i toss them in the pit of doom

xD "wERe i iZ?!?!?!11!"
02-02-2011, 08:19 PM #35
!x-MONKEY-BOMB!
League Champion
Originally posted by MOTOFREAK18 View Post
do u knwo if there will be a forge mode on mw2 to where u can pick up the people like waw lobbys?


read before you post xD
02-02-2011, 08:26 PM #36
Janiboy
☆ janiboy95 ☆
Cool, I like your forge mod the most :y:
02-02-2011, 08:28 PM #37
Xanadu
Banned
Originally posted by BOMB View Post
read before you post xD


happy now?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo