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, 08:34 PM #38
!x-MONKEY-BOMB!
League Champion
Originally posted by MOTOFREAK18 View Post
happy now?


why would i. All im saying is read the whole thread before you post something retarded
02-04-2011, 10:35 PM #39
blascke
Save Point
now can i make my scenario
:rolleyes:
02-22-2011, 05:11 AM #40
i really like this man its awesome thank you mossy
02-27-2011, 05:05 AM #41
EliteMossy your a god Smile
02-27-2011, 12:00 PM #42
Originally posted by EliteMossy View Post
Spawn and move care packages (and also mover other elements in the game like players Winky Winky)


u can pick up players with this forge??? i thought it was only possible in the other cods?!?!?!?!?
02-28-2011, 02:42 AM #43
Originally posted by xamp View Post
u can pick up players with this forge??? I thought it was only possible in the other cods?!?!?!?!?


lies lies lies lies!!!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo