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
12-31-2010, 03:02 PM #2
Dreamcather
Call me Eddie Winky Winky
Originally posted by EliteMossy 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


Thank you for the CodeHappy
I like it:P

I have a question. Can i add you?
I am a good friend to VampyTwist and Bernie.
12-31-2010, 03:05 PM #3
C R A V E
Computer Science and Finance
Thank you x100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
12-31-2010, 03:07 PM #4
gola
OVER 9000!
Sorry for being such a noob, but what exactly is it/ what does it do?
12-31-2010, 03:09 PM #5
EliteMossy
TheDigitalBoard.com
Originally posted by Boydeyyy View Post
Sorry for being such a noob, but what exactly is it/ what does it do?


Spawn and move care packages (and also mover other elements in the game like players Winky Winky)

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

Blackstorm, Merkii, Ned Flanders, xSpider95
12-31-2010, 03:19 PM #6
Merkii
Former Staff
o can you move players with this 1 :O lol i love picking noobs up
OT:
Mossy is your psn elitemossy with nothing else init i found a game and you were init you were raping to you went on a 9ks in a matter of seconds and each kill was 50k xp :O
12-31-2010, 03:21 PM #7
EliteMossy
TheDigitalBoard.com
Originally posted by BroLovesToHack View Post
o can you move players with this 1 :O lol i love picking noobs up
OT:
Mossy is your psn elitemossy with nothing else init i found a game and you were init you were raping to you went on a 9ks in a matter of seconds and each kill was 50k xp :O



Yea, i am just plain "EliteMossy" nothing else Winky Winky
12-31-2010, 03:25 PM #8
Arvindian
Error… Cat invasion!
Originally posted by EliteMossy View Post
Yea, i am just plain "EliteMossy" nothing else Winky Winky


Do you think its possible to spawn footballs or cones? cuz they are in Favela and maybe they could be used like the Sex Doll was?
12-31-2010, 03:25 PM #9
Merkii
Former Staff
nice im merk-fadeszz it was in favela we all raged after a couple seconds cos you got a pavelow within a minute :P
12-31-2010, 03:27 PM #10
Dreamcather
Call me Eddie Winky Winky
Originally posted by Arvindian View Post
Do you think its possible to spawn footballs or cones? cuz they are in Favela and maybe they could be used like the Sex Doll was?


Sex Doll are from SP.

I think its Possible.

Just copy the Model file from SP to MP?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo