Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
1 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty: Black Ops
Category: CoDBO Offsite Links
Links and information not affiliated with MODSonline.com.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Bubble problem
nemanja-1997
General Member
Since: Jan 5, 2012
Posts: 5
Last: Jan 6, 2012
[view latest posts]
Level 0
Category: CoDBO Offsite Links
Posted: Thursday, Jan. 5, 2012 05:51 am
Hey all i have a Bubble script, but it dont work, idk why...
Can you help me to fix this Script....? [confused]

Code:
main(maxtime,size)
{
	trace=bullettrace(self.origin+(0,0,20),self.origin-(0,0,60),false,undefined);
	bubble=spawn("script_model",trace["position"]+(0,0,size/2));
	bubble setmodel("xmodel/bx_dbubble");
	timer=0;
	while(isdefined(self)&&isdefined(self.sessionstate)&&self.sessionstate=="playing"&&timer<maxtime)
	{
		players=getentarray("player","classname");
		for(i=0;i<players.size;i++)
		{
			if(players[i].pers["team"]!=self.pers["team"]&&players[i].pers["team"]!="spectator")
			{
				if(distancesquared(players[i].origin,bubble.origin)<size*size)
				{
					//enemy inside bubble
					dmg=(size*size-distancesquared(bubble.origin,players[i].origin))*0.4;
					players[i].health+=dmg;
					players[i] finishplayerdamage(self,self,dmg, 0, "MOD_UNKNOWN", "defaultweapon_mp", players[i].origin+(0,0,30), vectornormalize(players[i].origin+(0,0,size/2)-bubble.origin), "none", 0);
				}
			}
		}
		playfx(level.bubblefx,bubble.origin);
		timer+=0.05;
		wait 0.05;
	}
	bubble delete();
}


edited on Jan. 5, 2012 08:15 am by Mystic - added code box
Share |
konrad12345678
General Member
Since: Aug 19, 2011
Posts: 9
Last: Feb 12, 2012
[view latest posts]
Level 0
Category: CoDBO Offsite Links
Posted: Thursday, Jan. 5, 2012 08:24 am
This script is to Cod2 -.- :D
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty: Black Ops : CoDBO Offsite Links

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»