AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adding 2 Entitys In a Brush CS 1.6 (https://forums.alliedmods.net/showthread.php?t=133022)

Turkish 07-21-2010 01:47

Adding 2 Entitys In a Brush CS 1.6
 
Adding 2 Entitys In a Brush in CS 1.6.
Its impossible while making maps but can we make a "vehichle ->braekable vehichle"?

Hunter-Digital 07-21-2010 02:13

Re: Adding 2 Entitys In a Brush CS 1.6
 
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
}

joropito 07-21-2010 19:40

Re: Adding 2 Entitys In a Brush CS 1.6
 
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

Turkish 08-16-2010 02:22

Re: Adding 2 Entitys In a Brush CS 1.6
 
Could u write "joropito"s script please


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

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