Post: Coding Problems :/
03-02-2011, 10:01 AM #1
-Whiteboy-
┌∩┐ (◣◢Winky Winky┌∩┐
(adsbygoogle = window.adsbygoogle || []).push({}); Ok im trying to make sex dolls blow up when you shoot them, for target practice or whatever but im having some problems...

[ame=https://www.youtube.com/watch?v=mwR4-SZ7UyM]YouTube - iw4mp 2011-03-02 01-48-32-03.avi[/ame]

But when i have more than one, only one blows up. Can any one help?

    SexDolls(){
self thread BOOBSspawn(0,0,2Cool Man (aka Tustin);
self thread BOOBSspawn(0,55,2Cool Man (aka Tustin);}

BOOBSspawn(x,y,z){
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
location = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
BOOBS=spawn("script_model",Location+(x,y,z));
BOOBS setModel("furniture_blowupdoll01");
BOOBS.health = 50;
self thread BOOBShealth(BOOBS);}

BOOBShealth(BOOBS){
self endon("BOOBSdestroyed");
for(;Winky Winky{
BOOBS setcandamage(true);
BOOBS.team = self.team;
BOOBS.owner = self.owner;
BOOBS.pers["team"] = self.team;
if(BOOBS.health < 0){
level.chopper_fx["smoke"]["trail"] = loadfx ("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"], BOOBS.origin);
self playsound( "ui_mp_nukebomb_timer" );
self iPrintlnBold("^1HIT!");
BOOBS delete();
self notify("BOOBSdestroyed");}
wait 0.1;
}}
(adsbygoogle = window.adsbygoogle || []).push({});
03-02-2011, 10:25 AM #2
xQuZe-
You talkin to me?
Originally posted by KNiiFE View Post
Ok im trying to make sex dolls blow up when you shoot them, for target practice or whatever but im having some problems...

You must login or register to view this content.

But when i have more than one, only one blows up. Can any one help?

    SexDolls(){
self thread BOOBSspawn(0,0,2Cool Man (aka Tustin);
self thread BOOBSspawn(0,55,2Cool Man (aka Tustin);}

BOOBSspawn(x,y,z){
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
location = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
BOOBS=spawn("script_model",Location+(x,y,z));
BOOBS setModel("furniture_blowupdoll01");
BOOBS.health = 50;
self thread BOOBShealth(BOOBS);}

BOOBShealth(BOOBS){
self endon("BOOBSdestroyed");
for(;Winky Winky{
BOOBS setcandamage(true);
BOOBS.team = self.team;
BOOBS.owner = self.owner;
BOOBS.pers["team"] = self.team;
if(BOOBS.health < 0){
level.chopper_fx["smoke"]["trail"] = loadfx ("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"], BOOBS.origin);
foreach( player in level.players ){
self playlocalsound( "ui_mp_nukebomb_timer" );}
self iPrintlnBold("^1HIT!");
BOOBS delete();
self notify("BOOBSdestroyed");}
wait 0.1;
}}


Couldn't get it working. But looks nice Winky Winky
03-02-2011, 10:28 AM #3
-Whiteboy-
┌∩┐ (◣◢Winky Winky┌∩┐
Originally posted by xQuZe
Couldn't get it working. But looks nice Winky Winky


I got the idea from your exploding sex dolls :p i just can't get it working..
03-02-2011, 05:45 PM #4
Originally posted by KNiiFE View Post
Ok im trying to make sex dolls blow up when you shoot them, for target practice or whatever but im having some problems...

You must login or register to view this content.

But when i have more than one, only one blows up. Can any one help?

    SexDolls(){
self thread BOOBSspawn(0,0,2Cool Man (aka Tustin);
self thread BOOBSspawn(0,55,2Cool Man (aka Tustin);}

BOOBSspawn(x,y,z){
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
location = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
BOOBS=spawn("script_model",Location+(x,y,z));
BOOBS setModel("furniture_blowupdoll01");
BOOBS.health = 50;
self thread BOOBShealth(BOOBS);}

BOOBShealth(BOOBS){
self endon("BOOBSdestroyed");
for(;Winky Winky{
BOOBS setcandamage(true);
BOOBS.team = self.team;
BOOBS.owner = self.owner;
BOOBS.pers["team"] = self.team;
if(BOOBS.health < 0){
level.chopper_fx["smoke"]["trail"] = loadfx ("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"], BOOBS.origin);
self playsound( "ui_mp_nukebomb_timer" );
self iPrintlnBold("^1HIT!");
BOOBS delete();
self notify("BOOBSdestroyed");}
wait 0.1;
}}


Its because you are spawning two dolls but using this after the first one blows up

    self notify("BOOBSdestroyed");


That is stopping the function so the other one won't blow up. You need to define each doll separately and give them their own explosion functions...

Or just spawn one at a time and respawn it in a random position after it explodes...
03-02-2011, 06:11 PM #5
-Whiteboy-
┌∩┐ (◣◢Winky Winky┌∩┐
Originally posted by ..V.. View Post
Its because you are spawning two dolls but using this after the first one blows up

    self notify("BOOBSdestroyed");


That is stopping the function so the other one won't blow up. You need to define each doll separately and give them their own explosion functions...

Or just spawn one at a time and respawn it in a random position after it explodes...


Ok... is there away to stop the nuke sound and "HIT!" from looping? If not that means im gonna have to do this for every doll i want to have spawned...

    BOOBS=spawn("script_model",Location+(x,y,z));
BOOBS setModel("furniture_blowupdoll01");
BOOBS.health = 50;
self thread BOOBShealth();


And thats gonna be alot of coding...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo