Aim vectors, detect impact, explosions
Hey,
I havn't really searched much on these matters as I normally would but I thought I may aswell. Im basically creating a new weapon and asking for ideas on firing a rocket. First I would create the rocket entity. * What sort of movetype, TOSS? * Should it be solid? * The ent size * Set the model Then I would set the origin/rotation(so that it lines up with the direction the user is aiming in) - How would I do this? PHP Code:
PHP Code:
On impact it would explode and cause damage in a radius - Using a sphere PHP Code:
Then the rocket would be deleted. I understand that I can find most of this out by looking through plugins, but I have limited time and I intend to do it while waiting on this topic. I appreciate any help. Thanks EDIT:Confused, this code works on a local server made by "create game" on the cs menu. But doesn't work when I put it on my server? PHP Code:
|
Re: Aim vectors, detect impact, explosions
Quote:
Quote:
|
Re: Aim vectors, detect impact, explosions
Quote:
amxx plugins shows it loaded perfectly fine same as amxmodmenu pause plugins menu The debug messages I added don't appear No entity is created It just doesn't work, nothing happens This is the console when it does work on a local server: Code:
BUILD 4554 SERVER (0 CRC)http://foolplay.co.uk/uploaded/allie...oilrig0000.bmp This is on my hosted server: Code:
[ 23] unknown unknown unknown rocket_test2.am runningCode:
] fire_rocket |
Re: Aim vectors, detect impact, explosions
When you write the command in the console ( in-game ) nothing happens ? If so try to use register_clcmd() instead.
|
Re: Aim vectors, detect impact, explosions
Quote:
|
Re: Aim vectors, detect impact, explosions
Plugin File open error = the compiled plugin *.amxx is not provided in plugins/ or the name provided in plugins.ini is not the same as the name in plugins/
|
Re: Aim vectors, detect impact, explosions
Quote:
Now the plugin doesn't work with a listen server or a hosted server with: register_clcmd() |
Re: Aim vectors, detect impact, explosions
Saying it doesn't work, it doesn't help at all.
Make sure the plugin is loaded. The right plugin. If loaded, where do you type the command ? Are there errors in logs ? You should see your debug, if not, it's not the right plugin. |
Re: Aim vectors, detect impact, explosions
Quote:
I type the command in the console. Error logs? no? I'll go read the debugging plugins wiki, when it loads... There are no debug messages. See the 3rd post for the definition of: it doesn't work |
Re: Aim vectors, detect impact, explosions
You must use the console in-game since you use register_clcmd().
|
| All times are GMT -4. The time now is 13:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.