![]() |
(Questions) if not allplayers..
Then what else can I use/do to hurt other players when my projectile hits someone? Currently it only hits/hurts me. I've tried a couple of things that I thought might work, but it's not happenin. Also can someone explain
getangle();? explain as best as you can please, and thanks to anyone that helps. |
Why would you use allplayers to hit someone? Do you really want to hit ALL the players when you just hit one person?
|
Probably making a nuke weapon or so.
|
Quote:
|
I think setting shoot params would do better for a projectile. I don't know how to do it but I'm sure someone here can help ya. Now if you want a projectile not to set a hurt gani then your out of luck.
|
testplayer(x, y)
Or you could use the built-in shoot() or my custom projectile system. getangle(vecx, vecy) gets the angle from the vecx and vecy in radian form. You can use radtodeg(angle) to get it to degree form. By the way, 90 (deg) is pi*0.5 (rad), 180 is pi, 270 is pi*1.5, 360 is pi*2 which is also 0. |
Quote:
also I'm already using shoot() but i didnt know i could make it to hurt a player once it reaches a object. I am trying setshootparams() though |
Quote:
|
I talked to you online about your problem. You already have shoot() down it looks like, so here is what you need to do.
To make shoot() hurt other players, the player your shooting at has to have onActionProjectile() in a weapon. Basic idea using this would be: PHP Code:
|
You need to have the onActionProjectile in a weapon script that every player has.
|
Yeah i didnt know that till now thanks
|
If Not Allthetime, When? If not Allplayers, Who?
by which i mean **** your thread title |
| All times are GMT +2. The time now is 06:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.