AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Req help] Defensive block with health (https://forums.alliedmods.net/showthread.php?t=133383)

DaxProxy 07-24-2010 15:59

[Req help] Defensive block with health
 
Defensive block with health

I've been trying to create an plugin, which will let you deploy an defensive block of cover by throwing smoke greande...so instead of smoke you'll get an block on the place where smoke nade lands...but i keep failing miserable.

What i'm asking is an simple example of block created after smoke grenade activates....

The block would be rectangle, and would have rotation depending on player's view...at the smoke nade activation moment.

[Fakemeta / Engine / Combined] Will work fine, as i underastand them quite well.

I dont have much hopes for it, as it would be huge brainf*uck to any scripter here, but any tip towards solution would be good.

I'm lacking quite everything:
1. Detection of smoke's landing spot based on player's id
2. Creation of solid rectangle with rectangle and health parameters
3. Setting an model / sprite to the block

I've done endless searching and exploring of plugin's source's which would get me towards solution but as i'm getting desperate already, i decided to make that topic.

RedRobster 07-24-2010 16:04

Re: [Req help] Defensive block with health
 
Okay? Brainfuck?

Anyways. Find where the smoke grenade lands, then create an entity at the origin with the some sort of wall entity class (not familiar with those yet). Then set a model to the entity.

Yes, I know that only does one thing that you asked about.

DaxProxy 07-24-2010 16:21

Re: [Req help] Defensive block with health
 
I am trying to find an way how to detect smoke's landing spot...if i've done that then i could create entity to that spot...but after that...it's all grey area for me.


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

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