Raised This Month: $ Target: $400
 0% 

Smoke


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-09-2006 , 10:27   Smoke
Reply With Quote #1

1. What is the name of the smoke-sprite? (is there any at all?)
I mean the smoke that is in the air not the smokepuff.

2. Can i remove the smoke to one or many players? (buying smoke removal)

3. How to make a sprite that sticks to/follows one player (even if player is moving), that is onley visible to one person (#id)?

Thx
__________________
Sig(h)!
Obbin is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-09-2006 , 13:41  
Reply With Quote #2

1. - Dont get What you mean

2. - Dont get What you mean

3. - Yes
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-09-2006 , 14:25  
Reply With Quote #3

Quote:
Originally Posted by Charr
1. - Dont get What you mean

2. - Dont get What you mean

3. - Yes
1. I mean the smoke that appears when u throw a Smoke grenade. sorry if that wasn't clear.

2. I meaned that Player(1) can see the smoke and player(2) can't. (Smoke-grenade-smoke)

3. How?
__________________
Sig(h)!
Obbin is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-09-2006 , 14:48  
Reply With Quote #4

1 & 2 would probably be some sort of FM hook, while 3 you would have to use a message. If you need more info, try searching for SVC_TEMPENTITY.
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-09-2006 , 14:49  
Reply With Quote #5

3. Yeah i have done that but i don't understand how to make it stick to one player.
__________________
Sig(h)!
Obbin is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-09-2006 , 14:54  
Reply With Quote #6

Here:
Code:
// Global new sprite // In precache sprite = precache_model("...") //... message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},id) write_byte(17) // What kind of tempentity it is write_coord(origin[0]) // X Coordinate write_coord(origin[1]) // Y Coordinate write_coord(origin[2]) // Z Coordinate write_short(sprite) // The spr's name. Giving it 0 means it has none... write_byte(YourScaleHere) // The scale of the sprite (in 0.1s) write_byte(brightnessofthesprite) // And, well, the brightness of the sprite.   message_end()
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-09-2006 , 14:58  
Reply With Quote #7

Ok thx, now one more thing, how to get the coordinates of a player?
I guess Orgin[1], Orgin[2] and Orgin[3] should be the players coordinates?
__________________
Sig(h)!
Obbin is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-09-2006 , 15:02  
Reply With Quote #8

Yep
Code:
new origin[3] get_user_origin(id,origin,0)

But I forgot to mention that if you want to keep the sprite alive, you'll need to set a looping/repeating task.
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 01-09-2006 , 15:28  
Reply With Quote #9

client_PreThink?
__________________
Sig(h)!
Obbin is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-09-2006 , 15:30  
Reply With Quote #10

You can use that too
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode