Smoking

Poll

yes?

no.
18 (31.6%)
yes.
9 (15.8%)
quesadilla.
30 (52.6%)

Total Members Voted: 57

Author Topic: Smoking  (Read 3616 times)

Does it work with every default face? try and see.

or mabey a weapon instead of a command would be easier (i shouldnt know, idk how to script) but, still, it could!

Does it work with every default face? try and see.

Working on it,
There's not really a way to make it fit with a couple faces, such as ASCII Terror.
I mean.  Wait-
Is there any way to change the mount offset using and if statement?  Like if they're using ASCII Terror, could I switch the mountPoint offset?

Hurr lets fix bad formatting with bad formatting.
Code: [Select]
function serverCmdSmoke(%this)
{
messageClient(%this, '', "\c6" @ %this.getPlayerName() SPC "is no((%this.isSmoking) ? "w" : " longer") SPC "smoking."
   if(%this.issmoking)
      %this.unmountimage(0);
   else
      %this.mountImage(0,drugsmokeimage);
   %this.issmoking=!%this.issmoking;
}
Then use states on the image to loop the emitter.
As long as you make the image correct it should work.
No garuntees though since I edited on a crappy phone.
I would suggest moving the slot number too
Here! Let me tell you why you're when when I am literally not physically capable of doing so!

ZSNO. Wait until you get onto a computer before trying to forget with me.

I'll accept your criticism (which I doubt you'll be able to produce) when it's accurate.

Here! Let me tell you why you're when when I am literally not physically capable of doing so!

ZSNO. Wait until you get onto a computer before trying to forget with me.

I'll accept your criticism (which I doubt you'll be able to produce) when it's accurate.
Your first sentence doesn't make sense at all.

Anyway you don't want to use loops when you can easily accomplish the same thing in image states, plus is makes it easier on the game.
Why do you always blow your top when someone tells you you're wrong?

Code: [Select]
datablock ShapeBaseImageData(drugsmokeImage)
{
   shapeFile = "base/data/shapes/empty.dts"; //Replace with cig model
emap = false;

mountPoint = 1; //Change this value to whatever slot you want it to mount to. hint: $headslot

stateName[0] = "Ready"; //state called when image is mounted
stateTransitionOnTimeout[0] = "FireA"; //This calls the "FireA" state when the TimeoutValue is done
stateTimeoutValue[0] = 0.01; //this tells how long before calling the "FireA" state

stateName[1] = "FireA"; //This is the transition name used to identify it in other states
stateTransitionOnTimeout[1] = "Ready"; //when this times out, swith to Ready state
stateWaitForTimeout[1] = True; //this tells the state to wait until timeout to transition to ready
stateTimeoutValue[1] = 0.350; // seconds until timeout
stateEmitter[1] = FireHandEmitterA; //emitter, replace with smoke emitter
stateEmitterTime[1] = 0.350; //how long the emitter stays for
};
So when the cigarette is mounted, it calls Ready, then ready calls FireA which makes the smoke and then goes back to ready to call fireA again.
If you want to put a little script somewhere in the states, just add something like statescript[1] = flash;
Then define it like
Code: [Select]
function drugsmokeimage::flash(%this)
{
   /do something
}
Have fun.

I'm gona say no and quesadilla.    

So.....
Someone is releasing this soon?
Could they add a joint and /rolljoint
Maybe a pipe that made rings like the printer, but up

:3

Old model I was working on back then
« Last Edit: June 19, 2012, 03:25:31 AM by Trogtor »

Next, add cigars.
Because Abram.

Old model I was working on back then

that is amazingly lovey

it would be cool if you could take it in and out making a grey /hate emitter.

and when you've done with it you'd flick it out


Your first sentence doesn't make sense at all.

Anyway you don't want to use loops when you can easily accomplish the same thing in image states, plus is makes it easier on the game.
Why do you always blow your top when someone tells you you're wrong?
I blow my top when you tell me I'm wrong when you are the one that is wrong!
You tell me that I have bad formatting, then you post this abomination:
Quote
using the excuse that you might be wrong because you're "posting from [your] phone", which is ultimately bullstuff. why should you be allowed to chew me out for my "stuffty formatting" when your formatting is worse??

I was showing Yola how to use loops, despite that not being the best way, so don't use that against me.