Raised This Month: $ Target: $400
 0% 

Adding 2 Entitys In a Brush CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Turkish
Junior Member
Join Date: Jul 2010
Old 07-21-2010 , 01:47   Adding 2 Entitys In a Brush CS 1.6
Reply With Quote #1

Adding 2 Entitys In a Brush in CS 1.6.
Its impossible while making maps but can we make a "vehichle ->braekable vehichle"?
__________________
Map Maker
Turkish is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-21-2010 , 02:13   Re: Adding 2 Entitys In a Brush CS 1.6
Reply With Quote #2

You could set health, takedamage and hook Ham_Killed on that entity and make the required effects.

How you find the entity ID is your concern... then apply health and damageable:

entity_set_float(ent, EV_FL_health, 5000.0)
entity_set_float(ent, EV_FL_takedamage, DAMAGE_AIM)

and hooking entity death:

RegisterHam(Ham_Killed, "func_vehicle", "vehicle_explode", 1)

..

public vehicle_explode(ent)
{
// do some explosion effects or something
}
__________________
Hunter-Digital is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 07-21-2010 , 19:40   Re: Adding 2 Entitys In a Brush CS 1.6
Reply With Quote #3

Also you can make the vehicle invisible, create a breakable solid entity, set movetype to follow the vehicle, add your desired settings and let engine do the explossion.

Hope you get the point
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Turkish
Junior Member
Join Date: Jul 2010
Old 08-16-2010 , 02:22   Re: Adding 2 Entitys In a Brush CS 1.6
Reply With Quote #4

Could u write "joropito"s script please
__________________
Map Maker
Turkish 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 07:15.


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