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

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: flak 88 for player
RussiaGhost
General Member
Since: Dec 7, 2014
Posts: 58
Last: Oct 14, 2017
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Thursday, Jan. 1, 2015 05:48 pm
As create flak 88 for use to player?
Share |
Donefore
General Member
Since: May 1, 2009
Posts: 165
Last: Sep 20, 2018
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD Mapping
Posted: Thursday, Jan. 1, 2015 07:42 pm
yes you can

D4
Share |
RussiaGhost
General Member
Since: Dec 7, 2014
Posts: 58
Last: Oct 14, 2017
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Thursday, Jan. 1, 2015 07:56 pm
Donefore writes...
Quote:
yes you can

D4

main(){
eFlak88 = getent("flak88a","targetname");
level thread flak88_init(eFlak88);
}
flak88_init(nFlak)
{
nFlak thread maps\_flak::flak88_playerinit();
level thread flak88_life(nFlak);
level thread flak88_shoot(nFlak);
level thread flak88_kill(nFlak);

}

flak88_life(nFlak)
{
nFlak endon("death");

nFlak.isalive = 1;
nFlak.health = 6000; //otherwise, the random mortars at the start sometimes kill the flak

level waittill ("objective final");

eFlak88 = getent( "flak_88", "targetname" );
eFlak88 makeVehicleUsable();

//nFlak makeVehicleUsable(); //now the player can use this gun
nFlak.health = 250;
}

flak88_shoot(nFlak)
{
while( nFlak.isalive == 1 )
{
nFlak waittill( "turret_fire" );
nFlak FireTurret();
wait 1;
nFlak playsound ("flak_reload");
}
}


flak88_kill(nFlak)
{
nFlak.deathmodel = "xmodel/turret_flak88_d";
nFlak.deathfx = loadfx( "fx/explosions/explosion1.efx" );
nFlak.deathsound = "explo_metal_rand";
maps\_utility::precache( nFlak.deathmodel );
nFlak waittill( "death", attacker );
level.usingflak = 0;
nFlak.isalive = 0;
nFlak setmodel( nFlak.deathmodel );
nFlak playsound( nFlak.deathsound );
nFlak clearTurretTarget();
playfx( nFlak.deathfx, nFlak.origin );
}
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Jan. 2, 2015 04:59 pm
Why do you have eFlak and nFlak?
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»