Sign in to follow this  
Followers 0
Sentrex

Bomb Case Pickup Anim

9 posts in this topic

onBeginUse( player )
{
	if ( self maps\mp\gametypes\_gameobjects::isFriendlyTeam( player.pers["team"] ) )
	{
		player playSound( "mp_bomb_defuse" );
		player.isDefusing = true;
		
		if ( isDefined( level.sdBombModel ) )
			level.sdBombModel hide();
	}
	else
	{
		player.isPlanting = true;

		if ( level.multibomb )
		{
			for ( i = 0; i < self.otherBombZones.size; i++ )
			{
				self.otherBombZones[i] maps\mp\gametypes\_gameobjects::disableObject();
			}
		}
	}
}

onEndUse( team, player, result )
{
	if ( !isAlive( player ) )
		return;
		
	player.isDefusing = false;
	player.isPlanting = false;

	if ( self maps\mp\gametypes\_gameobjects::isFriendlyTeam( player.pers["team"] ) )
	{
		if ( isDefined( level.sdBombModel ) && !result )
		{
			level.sdBombModel show();
		}
	}
	else
	{
		if ( level.multibomb && !result )
		{
			for ( i = 0; i < self.otherBombZones.size; i++ )
			{
				self.otherBombZones[i] maps\mp\gametypes\_gameobjects::enableObject();
			}
		}
	}
}

Not sure if it's what you're looking for, look in Raw > Maps > Mp > Gametypes > sd.gsc or sab.gsc (Search and Destroy or Sabotage)

0

Share this post


Link to post
Share on other sites
Not sure if it's what you're looking for, look in Raw > Maps > Mp > Gametypes > sd.gsc or sab.gsc (Search and Destroy or Sabotage)

I don't have those files in my gametypes folder :/

 

Will look through them, thanks!

 

If anyone could highlight the line/thread I need to look at that would be great.

0

Share this post


Link to post
Share on other sites

entity giveweapon ("briefcase_bomb_mp"); or entity giveweapon ("briefcase_bomb_defuse_mp"); 

0

Share this post


Link to post
Share on other sites

entity giveweapon ("briefcase_bomb_mp"); or entity giveweapon ("briefcase_bomb_defuse_mp"); 

Nothing happens when I give the user this 'weapon' :/

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0