Raised This Month: $60 Target: $400
 15% 

Build Dispenser


Post New Thread Reply   
 
Thread Tools Display Modes
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-10-2011 , 00:02   Re: Build Dispenser
Reply With Quote #11

hey tuty, you come back with a new plugin! good job!
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-10-2011 , 01:10   Re: Build Dispenser
Reply With Quote #12

I think that even a looping task would be better than using PlayerPreThink, but should be other way to do it.
__________________
- tired and retired -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 02-10-2011 , 06:36   Re: Build Dispenser
Reply With Quote #13

Quote:
Originally Posted by ConnorMcLeod View Post
I think that even a looping task would be better than using PlayerPreThink, but should be other way to do it.
yeah i know but, i dont want to mess with tasks
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-10-2011 , 10:50   Re: Build Dispenser
Reply With Quote #14

Quote:
Originally Posted by tuty View Post
yeah i know but, i dont want to mess with tasks
You can just put that part of code into dispenser thinking and printing message to owner, simple enough
__________________
xPaw is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 02-10-2011 , 11:23   Re: Build Dispenser
Reply With Quote #15

i didn't think about that rofl
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 02-11-2011 , 04:38   Re: Build Dispenser
Reply With Quote #16

Very nice.

It looks like the dispenser can replenish players through walls though as long as they are in range. I would check for visibility of players as well.
Wouldn't setting pev_owner be enough instead of using pev_iuser2 if you're just checking for the ent's owner?

You can take a look at my plugin below if you like as its pretty much very similar in concept. I'm trying to clone the armory from Natural Selection. Still a WIP and messy... Hehe.
Attached Files
File Type: sma Get Plugin or Get Source (armory.sma - 445 views - 11.6 KB)
__________________
It's a mystery.
Mini_Midget is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 02-11-2011 , 07:07   Re: Build Dispenser
Reply With Quote #17

Code:
Wouldn't setting pev_owner be enough instead of using pev_iuser2 if you're just checking for the ent's owner?
somethime when i use pev_owner the entity wont be solid and wont spawn how it should... and i know players can relenish thorough walls, i will fix that, thanks
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-11-2011 , 07:27   Re: Build Dispenser
Reply With Quote #18

Quote:
Originally Posted by Mini_Midget View Post
Wouldn't setting pev_owner be enough instead of using pev_iuser2 if you're just checking for the ent's owner?
pev_owner makes the entity not solid for the owner, good example is planted c4 when you can't walk on it.
__________________
xPaw is offline
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 02-11-2011 , 08:28   Re: Build Dispenser
Reply With Quote #19

Ho! Nice!
__________________
Kidev is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 02-13-2011 , 08:37   Re: Build Dispenser
Reply With Quote #20

updated, thanks @Mini_Midget
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Reply


Thread Tools
Display Modes

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 18:40.


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