Raised This Month: $12 Target: $400
 3% 

HL2 BOXES 1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
MaHu
Member
Join Date: Jun 2011
Location: Belarus
Old 11-13-2011 , 09:27   HL2 BOXES 1.0
Reply With Quote #1


plugins adds boxes from hl2
boxes have 200 hp and cost $5000(def)
to use box say|say_team /box
what new in 1.0?
Quote:
Add say_team /box command
add sounds
add cvar
add func_breakable
cvar register_cvar("box_cost","5000")
Attached Files
File Type: sma Get Plugin or Get Source (hl2box.sma - 802 views - 2.3 KB)
File Type: zip hl2box.zip (170.4 KB, 381 views)

Last edited by MaHu; 11-24-2011 at 12:52. Reason: updated 1.0 version
MaHu is offline
Gooogle
Member
Join Date: Aug 2011
Old 11-13-2011 , 09:41   Re: HL2 BOXES
Reply With Quote #2

You should add a menu. Like where you can create, and delete boxes.

Edit:
And explain more, such as, can we destroy the boxes if it is shot at.

Last edited by Gooogle; 11-13-2011 at 09:46.
Gooogle is offline
fantarn
Member
Join Date: Feb 2011
Old 11-13-2011 , 14:04   Re: HL2 BOXES
Reply With Quote #3

Quote:
You should add a menu. Like where you can create, and delete boxes.
Yeah that would be cool.
fantarn is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-13-2011 , 14:11   Re: HL2 BOXES
Reply With Quote #4

You should create a command in menu, like create on originis: X | Y
Dark Style is offline
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 11-13-2011 , 22:17   Re: HL2 BOXES
Reply With Quote #5

This is like... Sandbags?
XINLEI is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-14-2011 , 02:00   Re: HL2 BOXES
Reply With Quote #6

Why don't you create a func_breakable ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-16-2011 , 14:41   Re: HL2 BOXES
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Why don't you create a func_breakable ?
good idea and set material type and such [when is destroyed, that box will break in wood models or metal or something depending wich material type you set.] + will have damage sounds depending on material.. good idea connor
__________________

Last edited by tuty; 11-16-2011 at 14:41.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Lokogaditano
Senior Member
Join Date: Apr 2009
Old 11-16-2011 , 16:34   Re: HL2 BOXES
Reply With Quote #8

and for move the box?
Lokogaditano is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-17-2011 , 05:27   Re: HL2 BOXES
Reply With Quote #9

Make those changes in your code:
  • * Add a cvar for cost, so people can change it
    * You set entity to think, and you wont check anything in entity think, so remove entity_set_float(ent, EV_FL_nextthink, get_gametime() + 0.01)
    * Make a global constant for "models/hl2box.mdl" so you can use it easly in multiple places
    * Indent your code
    * You use fun module for nothing
    * You use fakemeta for nothing
    * Add support for say_team command
    * I think you should check entity health in takedamage and reduce it by damage

this is my opinion, so dont take it wrong
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Old 11-24-2011, 12:46
MaHu
This message has been deleted by MaHu.
MaHu
Member
Join Date: Jun 2011
Location: Belarus
Old 11-24-2011 , 12:56   Re: HL2 BOXES 1.0
Reply With Quote #10

updated version 1.0
MaHu is offline
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 05:36.


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