Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 6 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Grenade stalker, possible?
qwrtyp
General Member
Since: Feb 6, 2013
Posts: 5
Last: Feb 7, 2014
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Thursday, Jun. 6, 2013 04:11 pm
Anyone know how I can make the grenade chase the target?

i have found this, but olny works in single player mode:

Code:
self magicgrenade (self.origin, target.origin, 2.0)


I want that when the grenade is thrown in the direction of an enemy, it falls near him... its possible?

thx
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Jun. 6, 2013 10:41 pm
Grenades are entities so you can just move them in script.

I don't know if CoD2 sent a "grenade_fire" notify but you can try this (with some slight modifications to get it to work with how you're detecting an enemy)
Code:
player waittill( "grenade_fire", grenade );
grenade.origin = enemy.orign;
Share |
qwrtyp
General Member
Since: Feb 6, 2013
Posts: 5
Last: Feb 7, 2014
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Friday, Jun. 7, 2013 02:27 am
I'm trying to do from the beginning, but without success... just thrown the nade in direction of any enemy, and will falls killing the enemy...


thx for help [ohwell]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»