Raised This Month: $ Target: $400
 0% 

Some Questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 09-01-2013 , 22:07   Some Questions
Reply With Quote #1

1. How to make entity solid for the owner.
I use:
PHP Code:
entity_set_edict 
It will solid for other players but not for the owner, how can I make it solid to its owner? If I remove it, it'll make me collide

2. Play v_ models animation

PHP Code:
set_pev(idpev_weaponanimx
Set a v_ models animation, it plays but sometimes it stops before the animation ends, any other method?

Last edited by Randomize; 09-01-2013 at 22:12.
Randomize is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-02-2013 , 00:36   Re: Some Questions
Reply With Quote #2

1. No proper way
Explain more about what you are doing in your plugin, there may be alternatives such as using other pev_* edicts fields.

2. Use Ham_CS_SendWeaponAnimation
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 09-02-2013 , 05:34   Re: Some Questions
Reply With Quote #3

Connor, I want I'm able to shoot my entity.
Randomize is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-02-2013 , 18:24   Re: Some Questions
Reply With Quote #4

Explain why do you need to be the owner then.

When i asked you to explain, i meant to explain the whole thing, easier to help, prevent xy problems.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 09-03-2013 , 04:48   Re: Some Questions
Reply With Quote #5

Okay, I have a bomb that can be planted everywhere. If there's a player or some players around the bomb and if I shoot the bomb, it must be explode and deal damages to the victim.

Last edited by Randomize; 09-03-2013 at 04:51.
Randomize is offline
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 09-03-2013 , 04:59   Re: Some Questions
Reply With Quote #6

http://forums.alliedmods.net/showthread.php?p=850698
__________________



dark_style is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 09-03-2013 , 05:41   Re: Some Questions
Reply With Quote #7

dark_style, it is for bomb. My bomb is custom bomb, not hegrenade, flashbang, or smoke
Randomize is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 09-03-2013 , 08:52   Re: Some Questions
Reply With Quote #8

Quite simple. Make a constant with a value ( for example 100 ) and then you set the entity owner to PlayerID plus Constant. When you need the player's ID you can do entity owner minus Constant. And then the entity will remain solid to the player you deem as it's owner.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-03-2013 , 12:07   Re: Some Questions
Reply With Quote #9

If someone wants to try, method would consist to set owner to 0 when bomb is planted, and set it back to planter index when it explodes.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 09-04-2013 , 06:33   Re: Some Questions
Reply With Quote #10

hornet, I'm not pretty sure understand, but does it seem like this?
PHP Code:
new var = 100

entity_set_edict
(entEV_EZ_owner, var) 
Connor, If I set the owner to 0 when the bomb is planted, how to set it back to the owner?
Randomize 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 19:03.


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